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 #include "chrome/browser/views/cookie_prompt_view.h" | 5 #include "chrome/browser/views/cookie_prompt_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "app/gfx/canvas.h" | |
10 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
11 #include "base/i18n/time_formatting.h" | 10 #include "base/i18n/time_formatting.h" |
12 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
13 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
14 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
15 #include "chrome/browser/cookie_modal_dialog.h" | 14 #include "chrome/browser/cookie_modal_dialog.h" |
16 #include "chrome/browser/pref_service.h" | 15 #include "chrome/browser/pref_service.h" |
17 #include "chrome/browser/profile.h" | 16 #include "chrome/browser/profile.h" |
18 #include "chrome/browser/views/browser_dialogs.h" | 17 #include "chrome/browser/views/browser_dialogs.h" |
19 #include "chrome/browser/views/cookie_info_view.h" | 18 #include "chrome/browser/views/cookie_info_view.h" |
20 #include "chrome/browser/views/database_open_info_view.h" | 19 #include "chrome/browser/views/database_open_info_view.h" |
21 #include "chrome/browser/views/local_storage_set_item_info_view.h" | 20 #include "chrome/browser/views/local_storage_set_item_info_view.h" |
22 #include "chrome/browser/views/options/content_settings_window_view.h" | 21 #include "chrome/browser/views/options/content_settings_window_view.h" |
23 #include "chrome/common/pref_names.h" | 22 #include "chrome/common/pref_names.h" |
| 23 #include "gfx/canvas.h" |
24 #include "gfx/color_utils.h" | 24 #include "gfx/color_utils.h" |
25 #include "grit/generated_resources.h" | 25 #include "grit/generated_resources.h" |
26 #include "grit/locale_settings.h" | 26 #include "grit/locale_settings.h" |
27 #include "net/base/cookie_monster.h" | 27 #include "net/base/cookie_monster.h" |
28 #include "views/controls/label.h" | 28 #include "views/controls/label.h" |
29 #include "views/controls/button/native_button.h" | 29 #include "views/controls/button/native_button.h" |
30 #include "views/controls/button/radio_button.h" | 30 #include "views/controls/button/radio_button.h" |
31 #include "views/controls/textfield/textfield.h" | 31 #include "views/controls/textfield/textfield.h" |
32 #include "views/grid_layout.h" | 32 #include "views/grid_layout.h" |
33 #include "views/standard_layout.h" | 33 #include "views/standard_layout.h" |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 } | 286 } |
287 | 287 |
288 void CookiePromptView::InitializeViewResources() { | 288 void CookiePromptView::InitializeViewResources() { |
289 CookiePromptModalDialog::DialogType type = parent_->dialog_type(); | 289 CookiePromptModalDialog::DialogType type = parent_->dialog_type(); |
290 title_ = l10n_util::GetStringF( | 290 title_ = l10n_util::GetStringF( |
291 type == CookiePromptModalDialog::DIALOG_TYPE_COOKIE ? | 291 type == CookiePromptModalDialog::DIALOG_TYPE_COOKIE ? |
292 IDS_COOKIE_ALERT_TITLE : IDS_DATA_ALERT_TITLE, | 292 IDS_COOKIE_ALERT_TITLE : IDS_DATA_ALERT_TITLE, |
293 UTF8ToWide(parent_->origin().host())); | 293 UTF8ToWide(parent_->origin().host())); |
294 } | 294 } |
295 | 295 |
OLD | NEW |