| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/timer/timer.h" | 15 #include "base/timer/timer.h" |
| 16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 17 #include "chrome/browser/devtools/devtools_window.h" | 17 #include "chrome/browser/devtools/devtools_window.h" |
| 18 #include "chrome/browser/ui/browser.h" | 18 #include "chrome/browser/ui/browser.h" |
| 19 #include "chrome/browser/ui/browser_window.h" | 19 #include "chrome/browser/ui/browser_window.h" |
| 20 #include "chrome/browser/ui/exclusive_access/exclusive_access_context.h" | 20 #include "chrome/browser/ui/exclusive_access/exclusive_access_context.h" |
| 21 #include "chrome/browser/ui/infobar_container_delegate.h" | 21 #include "chrome/browser/ui/infobar_container_delegate.h" |
| 22 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" | 22 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" |
| 23 #include "chrome/browser/ui/views/exclusive_access_bubble_views_context.h" | 23 #include "chrome/browser/ui/views/exclusive_access_bubble_views_context.h" |
| 24 #include "chrome/browser/ui/views/frame/browser_frame.h" | 24 #include "chrome/browser/ui/views/frame/browser_frame.h" |
| 25 #include "chrome/browser/ui/views/frame/contents_web_view.h" | 25 #include "chrome/browser/ui/views/frame/contents_web_view.h" |
| 26 #include "chrome/browser/ui/views/frame/immersive_mode_controller.h" | 26 #include "chrome/browser/ui/views/frame/immersive_mode_controller.h" |
| 27 #include "chrome/browser/ui/views/frame/web_contents_close_handler.h" | 27 #include "chrome/browser/ui/views/frame/web_contents_close_handler.h" |
| 28 #include "chrome/browser/ui/views/load_complete_listener.h" | 28 #include "chrome/browser/ui/views/load_complete_listener.h" |
| 29 #include "chrome/browser/ui/views/profiles/signin_view_controller.h" |
| 29 #include "components/omnibox/browser/omnibox_popup_model_observer.h" | 30 #include "components/omnibox/browser/omnibox_popup_model_observer.h" |
| 30 #include "ui/base/accelerators/accelerator.h" | 31 #include "ui/base/accelerators/accelerator.h" |
| 31 #include "ui/base/models/simple_menu_model.h" | 32 #include "ui/base/models/simple_menu_model.h" |
| 32 #include "ui/gfx/native_widget_types.h" | 33 #include "ui/gfx/native_widget_types.h" |
| 33 #include "ui/views/controls/button/button.h" | 34 #include "ui/views/controls/button/button.h" |
| 34 #include "ui/views/controls/webview/unhandled_keyboard_event_handler.h" | 35 #include "ui/views/controls/webview/unhandled_keyboard_event_handler.h" |
| 35 #include "ui/views/widget/widget_delegate.h" | 36 #include "ui/views/widget/widget_delegate.h" |
| 36 #include "ui/views/widget/widget_observer.h" | 37 #include "ui/views/widget/widget_observer.h" |
| 37 #include "ui/views/window/client_view.h" | 38 #include "ui/views/window/client_view.h" |
| 38 | 39 |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 const content::NativeWebKeyboardEvent& event) override; | 358 const content::NativeWebKeyboardEvent& event) override; |
| 358 void CutCopyPaste(int command_id) override; | 359 void CutCopyPaste(int command_id) override; |
| 359 WindowOpenDisposition GetDispositionForPopupBounds( | 360 WindowOpenDisposition GetDispositionForPopupBounds( |
| 360 const gfx::Rect& bounds) override; | 361 const gfx::Rect& bounds) override; |
| 361 FindBar* CreateFindBar() override; | 362 FindBar* CreateFindBar() override; |
| 362 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost() | 363 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost() |
| 363 override; | 364 override; |
| 364 void ShowAvatarBubbleFromAvatarButton( | 365 void ShowAvatarBubbleFromAvatarButton( |
| 365 AvatarBubbleMode mode, | 366 AvatarBubbleMode mode, |
| 366 const signin::ManageAccountsParams& manage_accounts_params) override; | 367 const signin::ManageAccountsParams& manage_accounts_params) override; |
| 368 void ShowModalSigninWindow(AvatarBubbleMode mode) override; |
| 369 void CloseModalSigninWindow() override; |
| 367 int GetRenderViewHeightInsetWithDetachedBookmarkBar() override; | 370 int GetRenderViewHeightInsetWithDetachedBookmarkBar() override; |
| 368 void ExecuteExtensionCommand(const extensions::Extension* extension, | 371 void ExecuteExtensionCommand(const extensions::Extension* extension, |
| 369 const extensions::Command& command) override; | 372 const extensions::Command& command) override; |
| 370 ExclusiveAccessContext* GetExclusiveAccessContext() override; | 373 ExclusiveAccessContext* GetExclusiveAccessContext() override; |
| 371 | 374 |
| 372 BookmarkBarView* GetBookmarkBarView() const; | 375 BookmarkBarView* GetBookmarkBarView() const; |
| 373 LocationBarView* GetLocationBarView() const; | 376 LocationBarView* GetLocationBarView() const; |
| 374 views::View* GetTabContentsContainerView() const; | 377 views::View* GetTabContentsContainerView() const; |
| 375 ToolbarView* GetToolbarView() const; | 378 ToolbarView* GetToolbarView() const; |
| 376 | 379 |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 698 base::TimeTicks last_animation_time_; | 701 base::TimeTicks last_animation_time_; |
| 699 | 702 |
| 700 // If this flag is set then SetFocusToLocationBar() will set focus to the | 703 // If this flag is set then SetFocusToLocationBar() will set focus to the |
| 701 // location bar even if the browser window is not active. | 704 // location bar even if the browser window is not active. |
| 702 bool force_location_bar_focus_; | 705 bool force_location_bar_focus_; |
| 703 | 706 |
| 704 scoped_ptr<ImmersiveModeController> immersive_mode_controller_; | 707 scoped_ptr<ImmersiveModeController> immersive_mode_controller_; |
| 705 | 708 |
| 706 scoped_ptr<WebContentsCloseHandler> web_contents_close_handler_; | 709 scoped_ptr<WebContentsCloseHandler> web_contents_close_handler_; |
| 707 | 710 |
| 711 SigninViewController signin_view_controller_; |
| 712 |
| 708 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; | 713 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; |
| 709 | 714 |
| 710 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 715 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
| 711 }; | 716 }; |
| 712 | 717 |
| 713 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 718 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
| OLD | NEW |