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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "chrome/app/chrome_command_ids.h" | 12 #include "chrome/app/chrome_command_ids.h" |
13 #include "chrome/browser/chromeos/frame/panel_browser_view.h" | 13 #include "chrome/browser/chromeos/frame/panel_browser_view.h" |
14 #include "chrome/browser/chromeos/status/input_method_menu_button.h" | 14 #include "chrome/browser/chromeos/status/input_method_menu_button.h" |
15 #include "chrome/browser/chromeos/status/network_menu_button.h" | 15 #include "chrome/browser/chromeos/status/network_menu_button.h" |
16 #include "chrome/browser/chromeos/status/status_area_button.h" | 16 #include "chrome/browser/chromeos/status/status_area_button.h" |
17 #include "chrome/browser/chromeos/status/status_area_view.h" | 17 #include "chrome/browser/chromeos/status/status_area_view.h" |
18 #include "chrome/browser/chromeos/view_ids.h" | 18 #include "chrome/browser/chromeos/view_ids.h" |
19 #include "chrome/browser/chromeos/wm_ipc.h" | 19 #include "chrome/browser/chromeos/wm_ipc.h" |
20 #include "chrome/browser/ui/gtk/gtk_util.h" | 20 #include "chrome/browser/ui/gtk/gtk_util.h" |
21 #include "chrome/browser/ui/views/frame/browser_frame_gtk.h" | 21 #include "chrome/browser/ui/views/frame/browser_frame_gtk.h" |
22 #include "chrome/browser/ui/views/frame/browser_view.h" | 22 #include "chrome/browser/ui/views/frame/browser_view.h" |
23 #include "chrome/browser/ui/views/frame/browser_view_layout.h" | 23 #include "chrome/browser/ui/views/frame/browser_view_layout.h" |
24 #include "chrome/browser/ui/views/tabs/tab.h" | 24 #include "chrome/browser/ui/views/tabs/tab.h" |
25 #include "chrome/browser/ui/views/tabs/tab_strip.h" | 25 #include "chrome/browser/ui/views/tabs/tab_strip.h" |
26 #include "chrome/browser/ui/views/theme_background.h" | 26 #include "chrome/browser/ui/views/theme_background.h" |
27 #include "chrome/browser/ui/views/toolbar_view.h" | 27 #include "chrome/browser/ui/views/toolbar_view.h" |
28 #include "chrome/common/chrome_switches.h" | 28 #include "chrome/common/chrome_switches.h" |
29 #include "gfx/canvas.h" | |
30 #include "grit/generated_resources.h" | 29 #include "grit/generated_resources.h" |
31 #include "third_party/cros/chromeos_wm_ipc_enums.h" | 30 #include "third_party/cros/chromeos_wm_ipc_enums.h" |
32 #include "ui/base/models/simple_menu_model.h" | 31 #include "ui/base/models/simple_menu_model.h" |
| 32 #include "ui/gfx/canvas.h" |
33 #include "views/controls/button/button.h" | 33 #include "views/controls/button/button.h" |
34 #include "views/controls/button/image_button.h" | 34 #include "views/controls/button/image_button.h" |
35 #include "views/controls/menu/menu_2.h" | 35 #include "views/controls/menu/menu_2.h" |
36 #include "views/screen.h" | 36 #include "views/screen.h" |
37 #include "views/widget/root_view.h" | 37 #include "views/widget/root_view.h" |
38 #include "views/window/hit_test.h" | 38 #include "views/window/hit_test.h" |
39 #include "views/window/window.h" | 39 #include "views/window/window.h" |
40 | 40 |
41 namespace { | 41 namespace { |
42 | 42 |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { | 385 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { |
386 // Create a browser view for chromeos. | 386 // Create a browser view for chromeos. |
387 BrowserView* view; | 387 BrowserView* view; |
388 if (browser->type() & Browser::TYPE_POPUP) | 388 if (browser->type() & Browser::TYPE_POPUP) |
389 view = new chromeos::PanelBrowserView(browser); | 389 view = new chromeos::PanelBrowserView(browser); |
390 else | 390 else |
391 view = new chromeos::BrowserView(browser); | 391 view = new chromeos::BrowserView(browser); |
392 BrowserFrame::Create(view, browser->profile()); | 392 BrowserFrame::Create(view, browser->profile()); |
393 return view; | 393 return view; |
394 } | 394 } |
OLD | NEW |