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/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/cookie_modal_dialog.h" | 13 #include "chrome/browser/cookie_modal_dialog.h" |
14 #include "chrome/browser/pref_service.h" | 14 #include "chrome/browser/prefs/pref_service.h" |
15 #include "chrome/browser/profile.h" | 15 #include "chrome/browser/profile.h" |
16 #include "chrome/browser/views/browser_dialogs.h" | 16 #include "chrome/browser/views/browser_dialogs.h" |
17 #include "chrome/browser/views/cookie_info_view.h" | 17 #include "chrome/browser/views/cookie_info_view.h" |
18 #include "chrome/browser/views/database_open_info_view.h" | 18 #include "chrome/browser/views/database_open_info_view.h" |
19 #include "chrome/browser/views/generic_info_view.h" | 19 #include "chrome/browser/views/generic_info_view.h" |
20 #include "chrome/browser/views/local_storage_set_item_info_view.h" | 20 #include "chrome/browser/views/local_storage_set_item_info_view.h" |
21 #include "chrome/browser/views/options/content_settings_window_view.h" | 21 #include "chrome/browser/views/options/content_settings_window_view.h" |
22 #include "chrome/common/pref_names.h" | 22 #include "chrome/common/pref_names.h" |
23 #include "gfx/canvas.h" | 23 #include "gfx/canvas.h" |
24 #include "gfx/color_utils.h" | 24 #include "gfx/color_utils.h" |
(...skipping 263 matching lines...) Loading... |
288 window->SetBounds(bounds, NULL); | 288 window->SetBounds(bounds, NULL); |
289 } | 289 } |
290 | 290 |
291 void CookiePromptView::InitializeViewResources() { | 291 void CookiePromptView::InitializeViewResources() { |
292 CookiePromptModalDialog::DialogType type = parent_->dialog_type(); | 292 CookiePromptModalDialog::DialogType type = parent_->dialog_type(); |
293 title_ = l10n_util::GetStringF( | 293 title_ = l10n_util::GetStringF( |
294 type == CookiePromptModalDialog::DIALOG_TYPE_COOKIE ? | 294 type == CookiePromptModalDialog::DIALOG_TYPE_COOKIE ? |
295 IDS_COOKIE_ALERT_TITLE : IDS_DATA_ALERT_TITLE, | 295 IDS_COOKIE_ALERT_TITLE : IDS_DATA_ALERT_TITLE, |
296 UTF8ToWide(parent_->origin().host())); | 296 UTF8ToWide(parent_->origin().host())); |
297 } | 297 } |
OLD | NEW |