| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_VIEWS_OPTIONS_EXCEPTIONS_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_OPTIONS_EXCEPTIONS_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_OPTIONS_EXCEPTIONS_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_OPTIONS_EXCEPTIONS_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/views/options/content_exceptions_table_model.h" | 10 #include "chrome/browser/views/options/content_exceptions_table_model.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // for a specific type. ExceptionsView is deleted when the window closes. | 31 // for a specific type. ExceptionsView is deleted when the window closes. |
| 32 class ExceptionsView : public ExceptionEditorView::Delegate, | 32 class ExceptionsView : public ExceptionEditorView::Delegate, |
| 33 public views::View, | 33 public views::View, |
| 34 public views::ButtonListener, | 34 public views::ButtonListener, |
| 35 public views::DialogDelegate, | 35 public views::DialogDelegate, |
| 36 public views::TableViewObserver { | 36 public views::TableViewObserver { |
| 37 public: | 37 public: |
| 38 // Shows the Exceptions window. | 38 // Shows the Exceptions window. |
| 39 static void ShowExceptionsWindow(gfx::NativeWindow parent, | 39 static void ShowExceptionsWindow(gfx::NativeWindow parent, |
| 40 HostContentSettingsMap* map, | 40 HostContentSettingsMap* map, |
| 41 ContentSettingsType type); | 41 ContentSettingsType content_type); |
| 42 | 42 |
| 43 virtual ~ExceptionsView(); | 43 virtual ~ExceptionsView(); |
| 44 | 44 |
| 45 // TableViewObserver overrides: | 45 // TableViewObserver overrides: |
| 46 virtual void OnSelectionChanged(); | 46 virtual void OnSelectionChanged(); |
| 47 virtual void OnDoubleClick(); | 47 virtual void OnDoubleClick(); |
| 48 virtual void OnTableViewDelete(views::TableView* table_view); | 48 virtual void OnTableViewDelete(views::TableView* table_view); |
| 49 | 49 |
| 50 // views::ButtonListener implementation. | 50 // views::ButtonListener implementation. |
| 51 virtual void ButtonPressed(views::Button* sender, const views::Event& event); | 51 virtual void ButtonPressed(views::Button* sender, const views::Event& event); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 views::NativeButton* add_button_; | 99 views::NativeButton* add_button_; |
| 100 views::NativeButton* edit_button_; | 100 views::NativeButton* edit_button_; |
| 101 views::NativeButton* remove_button_; | 101 views::NativeButton* remove_button_; |
| 102 views::NativeButton* remove_all_button_; | 102 views::NativeButton* remove_all_button_; |
| 103 | 103 |
| 104 DISALLOW_COPY_AND_ASSIGN(ExceptionsView); | 104 DISALLOW_COPY_AND_ASSIGN(ExceptionsView); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 #endif // CHROME_BROWSER_VIEWS_OPTIONS_EXCEPTIONS_VIEW_H_ | 107 #endif // CHROME_BROWSER_VIEWS_OPTIONS_EXCEPTIONS_VIEW_H_ |
| 108 | 108 |
| OLD | NEW |