Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3728)

Unified Diff: chrome/browser/gtk/options/content_exception_editor.h

Issue 6099014: Move chrome/browser/gtk to chrome/browser/ui/gtk (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Move browser/gtk/ to browser/ui/gtk/, leave header stubs, update new header guards Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/gtk/options/content_exception_editor.h
diff --git a/chrome/browser/gtk/options/content_exception_editor.h b/chrome/browser/gtk/options/content_exception_editor.h
index 4ed5ad352c5aaf861d389059f80e021d71024b8c..47e3e55bb68066bf1262c7bdeb96ceb1706a6b1b 100644
--- a/chrome/browser/gtk/options/content_exception_editor.h
+++ b/chrome/browser/gtk/options/content_exception_editor.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -6,76 +6,7 @@
#define CHROME_BROWSER_GTK_OPTIONS_CONTENT_EXCEPTION_EDITOR_H_
#pragma once
-#include <gtk/gtk.h>
-
-#include "app/gtk_signal.h"
-#include "chrome/browser/content_exceptions_table_model.h"
-#include "chrome/browser/content_setting_combo_model.h"
-#include "chrome/common/content_settings.h"
-#include "chrome/common/content_settings_types.h"
-
-// An editor which lets the user create or edit an individual exception to the
-// current content setting policy. (i.e. let www.google.com always show
-// images). Modal to parent.
-class ContentExceptionEditor {
- public:
- class Delegate {
- public:
- // Invoked when the user accepts the edit.
- virtual void AcceptExceptionEdit(
- const ContentSettingsPattern& pattern,
- ContentSetting setting,
- bool is_off_the_record,
- int index,
- bool is_new) = 0;
-
- protected:
- virtual ~Delegate() {}
- };
-
- ContentExceptionEditor(GtkWindow* parent,
- Delegate* delegate,
- ContentExceptionsTableModel* model,
- bool allow_off_the_record,
- int index,
- const ContentSettingsPattern& pattern,
- ContentSetting setting,
- bool is_off_the_record);
- virtual ~ContentExceptionEditor() {}
-
- private:
- // Returns true if we're adding a new item.
- bool is_new() const { return index_ == -1; }
-
- bool IsPatternValid(const ContentSettingsPattern& pattern,
- bool is_off_the_record) const;
-
- void UpdateImage(GtkWidget* image, bool is_valid);
-
- // GTK callbacks
- CHROMEGTK_CALLBACK_0(ContentExceptionEditor, void, OnEntryChanged);
- CHROMEGTK_CALLBACK_1(ContentExceptionEditor, void, OnResponse, int);
- CHROMEGTK_CALLBACK_0(ContentExceptionEditor, void, OnWindowDestroy);
-
- Delegate* delegate_;
- ContentExceptionsTableModel* model_;
-
- // The model for Combobox widget.
- ContentSettingComboModel cb_model_;
-
- // Index of the item being edited. If -1, indicates this is a new entry.
- const int index_;
- const ContentSettingsPattern pattern_;
- const ContentSetting setting_;
-
- // UI widgets.
- GtkWidget* dialog_;
- GtkWidget* entry_;
- GtkWidget* pattern_image_;
- GtkWidget* action_combo_;
- GtkWidget* otr_checkbox_;
-
- DISALLOW_COPY_AND_ASSIGN(ContentExceptionEditor);
-};
+#include "chrome/browser/ui/gtk/options/content_exception_editor.h"
+// TODO(msw): remove this file once all includes have been updated.
#endif // CHROME_BROWSER_GTK_OPTIONS_CONTENT_EXCEPTION_EDITOR_H_
« no previous file with comments | « chrome/browser/gtk/options/advanced_page_gtk.h ('k') | chrome/browser/gtk/options/content_exceptions_window_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698