| 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/simple_content_exceptions_view.h" | 5 #include "chrome/browser/ui/views/options/simple_content_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 "grit/generated_resources.h" | 11 #include "grit/generated_resources.h" |
| 12 #include "grit/locale_settings.h" | 12 #include "grit/locale_settings.h" |
| 13 #include "gfx/rect.h" | |
| 14 #include "ui/base/l10n/l10n_util.h" | 13 #include "ui/base/l10n/l10n_util.h" |
| 14 #include "ui/gfx/rect.h" |
| 15 #include "views/controls/button/native_button.h" | 15 #include "views/controls/button/native_button.h" |
| 16 #include "views/controls/table/table_view.h" | 16 #include "views/controls/table/table_view.h" |
| 17 #include "views/layout/grid_layout.h" | 17 #include "views/layout/grid_layout.h" |
| 18 #include "views/layout/layout_constants.h" | 18 #include "views/layout/layout_constants.h" |
| 19 #include "views/window/window.h" | 19 #include "views/window/window.h" |
| 20 | 20 |
| 21 static const int kExceptionsViewInsetSize = 5; | 21 static const int kExceptionsViewInsetSize = 5; |
| 22 static SimpleContentExceptionsView* instance = NULL; | 22 static SimpleContentExceptionsView* instance = NULL; |
| 23 | 23 |
| 24 // static | 24 // static |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 | 181 |
| 182 void SimpleContentExceptionsView::Remove() { | 182 void SimpleContentExceptionsView::Remove() { |
| 183 model_->RemoveRows(GetSelectedRows()); | 183 model_->RemoveRows(GetSelectedRows()); |
| 184 UpdateButtonState(); | 184 UpdateButtonState(); |
| 185 } | 185 } |
| 186 | 186 |
| 187 void SimpleContentExceptionsView::RemoveAll() { | 187 void SimpleContentExceptionsView::RemoveAll() { |
| 188 model_->RemoveAll(); | 188 model_->RemoveAll(); |
| 189 UpdateButtonState(); | 189 UpdateButtonState(); |
| 190 } | 190 } |
| OLD | NEW |