Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

content_setting_combo_model.h

// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_CONTENT_SETTING_COMBO_MODEL_H_
#define CHROME_BROWSER_CONTENT_SETTING_COMBO_MODEL_H_

#include "app/combobox_model.h"

#include "base/basictypes.h"
#include "chrome/common/content_settings.h"

class ContentSettingComboModel : public ComboboxModel {
 public:
  explicit ContentSettingComboModel(bool show_ask);
  virtual ~ContentSettingComboModel();

  virtual int GetItemCount();

  virtual std::wstring GetItemAt(int index);

  ContentSetting SettingForIndex(int index);

  int IndexForSetting(ContentSetting);

 private:
  const bool show_ask_;

  DISALLOW_COPY_AND_ASSIGN(ContentSettingComboModel);
};

#endif  // CHROME_BROWSER_CONTENT_SETTING_COMBO_MODEL_H_

Generated by  Doxygen 1.6.0   Back to index