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 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/timer.h" | 15 #include "base/timer.h" |
16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
17 #include "chrome/browser/infobars/infobar_container.h" | 17 #include "chrome/browser/infobars/infobar_container.h" |
18 #include "chrome/browser/tabs/tab_strip_model_observer.h" | 18 #include "chrome/browser/tabs/tab_strip_model_observer.h" |
19 #include "chrome/browser/ui/browser.h" | 19 #include "chrome/browser/ui/browser.h" |
20 #include "chrome/browser/ui/browser_window.h" | 20 #include "chrome/browser/ui/browser_window.h" |
21 #include "chrome/browser/ui/views/frame/browser_bubble_host.h" | |
22 #include "chrome/browser/ui/views/frame/browser_frame.h" | 21 #include "chrome/browser/ui/views/frame/browser_frame.h" |
23 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" | 22 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" |
24 #include "chrome/browser/ui/views/tabs/abstract_tab_strip_view.h" | 23 #include "chrome/browser/ui/views/tabs/abstract_tab_strip_view.h" |
25 #include "chrome/browser/ui/views/unhandled_keyboard_event_handler.h" | 24 #include "chrome/browser/ui/views/unhandled_keyboard_event_handler.h" |
26 #include "content/public/browser/notification_registrar.h" | 25 #include "content/public/browser/notification_registrar.h" |
27 #include "ui/base/models/simple_menu_model.h" | 26 #include "ui/base/models/simple_menu_model.h" |
28 #include "ui/gfx/native_widget_types.h" | 27 #include "ui/gfx/native_widget_types.h" |
29 #include "ui/views/widget/widget_delegate.h" | 28 #include "ui/views/widget/widget_delegate.h" |
30 #include "ui/views/window/client_view.h" | 29 #include "ui/views/window/client_view.h" |
31 #include "views/controls/single_split_view_listener.h" | 30 #include "views/controls/single_split_view_listener.h" |
32 | 31 |
33 #if defined(OS_WIN) | 32 #if defined(OS_WIN) |
34 #include "chrome/browser/hang_monitor/hung_plugin_action.h" | 33 #include "chrome/browser/hang_monitor/hung_plugin_action.h" |
35 #include "chrome/browser/hang_monitor/hung_window_detector.h" | 34 #include "chrome/browser/hang_monitor/hung_window_detector.h" |
36 #include "ui/views/controls/menu/native_menu_win.h" | 35 #include "ui/views/controls/menu/native_menu_win.h" |
37 #endif | 36 #endif |
38 | 37 |
39 // NOTE: For more information about the objects and files in this directory, | 38 // NOTE: For more information about the objects and files in this directory, |
40 // view: http://dev.chromium.org/developers/design-documents/browser-window | 39 // view: http://dev.chromium.org/developers/design-documents/browser-window |
41 | 40 |
42 class BookmarkBarView; | 41 class BookmarkBarView; |
43 class Browser; | 42 class Browser; |
44 class BrowserBubble; | |
45 class BrowserViewLayout; | 43 class BrowserViewLayout; |
46 class ContentsContainer; | 44 class ContentsContainer; |
47 class DownloadShelfView; | 45 class DownloadShelfView; |
48 class EncodingMenuModel; | 46 class EncodingMenuModel; |
49 class Extension; | 47 class Extension; |
50 class FullscreenExitBubbleViews; | 48 class FullscreenExitBubbleViews; |
51 class InfoBarContainerView; | 49 class InfoBarContainerView; |
52 class LocationBarView; | 50 class LocationBarView; |
53 class StatusBubbleViews; | 51 class StatusBubbleViews; |
54 class TabContentsContainer; | 52 class TabContentsContainer; |
(...skipping 19 matching lines...) Expand all Loading... |
74 class ExternalFocusTracker; | 72 class ExternalFocusTracker; |
75 class Menu; | 73 class Menu; |
76 } | 74 } |
77 | 75 |
78 /////////////////////////////////////////////////////////////////////////////// | 76 /////////////////////////////////////////////////////////////////////////////// |
79 // BrowserView | 77 // BrowserView |
80 // | 78 // |
81 // A ClientView subclass that provides the contents of a browser window, | 79 // A ClientView subclass that provides the contents of a browser window, |
82 // including the TabStrip, toolbars, download shelves, the content area etc. | 80 // including the TabStrip, toolbars, download shelves, the content area etc. |
83 // | 81 // |
84 class BrowserView : public BrowserBubbleHost, | 82 class BrowserView : public BrowserWindow, |
85 public BrowserWindow, | |
86 public BrowserWindowTesting, | 83 public BrowserWindowTesting, |
87 public content::NotificationObserver, | 84 public content::NotificationObserver, |
88 public TabStripModelObserver, | 85 public TabStripModelObserver, |
89 public ui::SimpleMenuModel::Delegate, | 86 public ui::SimpleMenuModel::Delegate, |
90 public views::WidgetDelegate, | 87 public views::WidgetDelegate, |
91 public views::Widget::Observer, | 88 public views::Widget::Observer, |
92 public views::ClientView, | 89 public views::ClientView, |
93 public InfoBarContainer::Delegate, | 90 public InfoBarContainer::Delegate, |
94 public views::SingleSplitViewListener { | 91 public views::SingleSplitViewListener { |
95 public: | 92 public: |
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 // If this flag is set then SetFocusToLocationBar() will set focus to the | 725 // If this flag is set then SetFocusToLocationBar() will set focus to the |
729 // location bar even if the browser window is not active. | 726 // location bar even if the browser window is not active. |
730 bool force_location_bar_focus_; | 727 bool force_location_bar_focus_; |
731 | 728 |
732 PendingFullscreenRequest fullscreen_request_; | 729 PendingFullscreenRequest fullscreen_request_; |
733 | 730 |
734 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 731 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
735 }; | 732 }; |
736 | 733 |
737 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 734 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |