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/chromeos/frame/browser_view.h" | 5 #include "chrome/browser/chromeos/frame/browser_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "chrome/common/chrome_switches.h" | 31 #include "chrome/common/chrome_switches.h" |
32 #include "grit/generated_resources.h" | 32 #include "grit/generated_resources.h" |
33 #include "grit/theme_resources_standard.h" | 33 #include "grit/theme_resources_standard.h" |
34 #include "third_party/cros_system_api/window_manager/chromeos_wm_ipc_enums.h" | 34 #include "third_party/cros_system_api/window_manager/chromeos_wm_ipc_enums.h" |
35 #include "ui/base/hit_test.h" | 35 #include "ui/base/hit_test.h" |
36 #include "ui/base/l10n/l10n_util.h" | 36 #include "ui/base/l10n/l10n_util.h" |
37 #include "ui/base/models/simple_menu_model.h" | 37 #include "ui/base/models/simple_menu_model.h" |
38 #include "ui/base/theme_provider.h" | 38 #include "ui/base/theme_provider.h" |
39 #include "ui/gfx/canvas.h" | 39 #include "ui/gfx/canvas.h" |
40 #include "ui/gfx/screen.h" | 40 #include "ui/gfx/screen.h" |
41 #include "ui/views/widget/root_view.h" | |
42 #include "ui/views/widget/widget.h" | |
43 #include "views/controls/button/button.h" | 41 #include "views/controls/button/button.h" |
44 #include "views/controls/button/image_button.h" | 42 #include "views/controls/button/image_button.h" |
45 #include "views/controls/menu/menu_delegate.h" | 43 #include "views/controls/menu/menu_delegate.h" |
46 #include "views/controls/menu/menu_item_view.h" | 44 #include "views/controls/menu/menu_item_view.h" |
47 #include "views/controls/menu/menu_runner.h" | 45 #include "views/controls/menu/menu_runner.h" |
| 46 #include "views/widget/root_view.h" |
| 47 #include "views/widget/widget.h" |
48 | 48 |
49 #if defined(TOOLKIT_USES_GTK) | 49 #if defined(TOOLKIT_USES_GTK) |
50 #include "chrome/browser/chromeos/legacy_window_manager/wm_ipc.h" | 50 #include "chrome/browser/chromeos/legacy_window_manager/wm_ipc.h" |
51 #endif | 51 #endif |
52 | 52 |
53 namespace { | 53 namespace { |
54 | 54 |
55 // Amount to tweak the position of the status area to get it to look right. | 55 // Amount to tweak the position of the status area to get it to look right. |
56 const int kStatusAreaVerticalAdjustment = -1; | 56 const int kStatusAreaVerticalAdjustment = -1; |
57 | 57 |
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
660 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { | 660 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { |
661 // Create a browser view for chromeos. | 661 // Create a browser view for chromeos. |
662 BrowserView* view; | 662 BrowserView* view; |
663 if (browser->is_type_popup() || browser->is_type_panel()) | 663 if (browser->is_type_popup() || browser->is_type_panel()) |
664 view = new chromeos::PanelBrowserView(browser); | 664 view = new chromeos::PanelBrowserView(browser); |
665 else | 665 else |
666 view = new chromeos::BrowserView(browser); | 666 view = new chromeos::BrowserView(browser); |
667 (new BrowserFrame(view))->InitBrowserFrame(); | 667 (new BrowserFrame(view))->InitBrowserFrame(); |
668 return view; | 668 return view; |
669 } | 669 } |
OLD | NEW |