| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/ui/views/options/exceptions_view.h" | 5 #include "chrome/browser/ui/views/options/exceptions_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 11 #include "chrome/browser/ui/views/options/content_exceptions_table_view.h" | 11 #include "chrome/browser/ui/views/options/content_exceptions_table_view.h" |
| 12 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
| 13 #include "grit/locale_settings.h" | 13 #include "grit/locale_settings.h" |
| 14 #include "gfx/rect.h" | 14 #include "gfx/rect.h" |
| 15 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
| 16 #include "views/controls/button/native_button.h" | 16 #include "views/controls/button/native_button.h" |
| 17 #include "views/controls/label.h" | 17 #include "views/controls/label.h" |
| 18 #include "views/controls/table/table_view.h" | 18 #include "views/controls/table/table_view.h" |
| 19 #include "views/grid_layout.h" | 19 #include "views/layout/grid_layout.h" |
| 20 #include "views/layout/layout_constants.h" | 20 #include "views/layout/layout_constants.h" |
| 21 #include "views/window/window.h" | 21 #include "views/window/window.h" |
| 22 | 22 |
| 23 static const int kExceptionsViewInsetSize = 5; | 23 static const int kExceptionsViewInsetSize = 5; |
| 24 static ExceptionsView* instances[CONTENT_SETTINGS_NUM_TYPES] = { NULL }; | 24 static ExceptionsView* instances[CONTENT_SETTINGS_NUM_TYPES] = { NULL }; |
| 25 | 25 |
| 26 // static | 26 // static |
| 27 void ExceptionsView::ShowExceptionsWindow( | 27 void ExceptionsView::ShowExceptionsWindow( |
| 28 gfx::NativeWindow parent, | 28 gfx::NativeWindow parent, |
| 29 HostContentSettingsMap* map, | 29 HostContentSettingsMap* map, |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 } | 272 } |
| 273 | 273 |
| 274 UpdateButtonState(); | 274 UpdateButtonState(); |
| 275 } | 275 } |
| 276 | 276 |
| 277 void ExceptionsView::RemoveAll() { | 277 void ExceptionsView::RemoveAll() { |
| 278 model_.RemoveAll(); | 278 model_.RemoveAll(); |
| 279 | 279 |
| 280 UpdateButtonState(); | 280 UpdateButtonState(); |
| 281 } | 281 } |
| OLD | NEW |