OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/first_run_bubble.h" | 5 #include "chrome/browser/views/first_run_bubble.h" |
6 | 6 |
| 7 #include "app/l10n_util.h" |
7 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
8 #include "base/win_util.h" | 9 #include "base/win_util.h" |
9 #include "chrome/browser/browser.h" | 10 #include "chrome/browser/browser.h" |
10 #include "chrome/browser/browser_list.h" | 11 #include "chrome/browser/browser_list.h" |
11 #include "chrome/browser/browser_window.h" | 12 #include "chrome/browser/browser_window.h" |
12 #include "chrome/browser/options_window.h" | 13 #include "chrome/browser/options_window.h" |
13 #include "chrome/browser/profile.h" | 14 #include "chrome/browser/profile.h" |
14 #include "chrome/browser/search_engines/template_url_model.h" | 15 #include "chrome/browser/search_engines/template_url_model.h" |
15 #include "chrome/browser/views/standard_layout.h" | 16 #include "chrome/browser/views/standard_layout.h" |
16 #include "chrome/common/l10n_util.h" | |
17 #include "chrome/views/event.h" | 17 #include "chrome/views/event.h" |
18 #include "chrome/views/controls/button/native_button.h" | 18 #include "chrome/views/controls/button/native_button.h" |
19 #include "chrome/views/controls/label.h" | 19 #include "chrome/views/controls/label.h" |
20 #include "chrome/views/focus/focus_manager.h" | 20 #include "chrome/views/focus/focus_manager.h" |
21 #include "chrome/views/window/window.h" | 21 #include "chrome/views/window/window.h" |
22 #include "grit/chromium_strings.h" | 22 #include "grit/chromium_strings.h" |
23 #include "grit/generated_resources.h" | 23 #include "grit/generated_resources.h" |
24 #include "grit/locale_settings.h" | 24 #include "grit/locale_settings.h" |
25 | 25 |
26 namespace { | 26 namespace { |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 views::FocusManager* focus_manager = | 236 views::FocusManager* focus_manager = |
237 views::FocusManager::GetFocusManager(window->GetNativeView()); | 237 views::FocusManager::GetFocusManager(window->GetNativeView()); |
238 focus_manager->AddFocusChangeListener(view); | 238 focus_manager->AddFocusChangeListener(view); |
239 view->BubbleShown(); | 239 view->BubbleShown(); |
240 return window; | 240 return window; |
241 } | 241 } |
242 | 242 |
243 void FirstRunBubble::EnableParent() { | 243 void FirstRunBubble::EnableParent() { |
244 ::EnableWindow(GetParent(), true); | 244 ::EnableWindow(GetParent(), true); |
245 } | 245 } |
OLD | NEW |