| 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> |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 | 225 |
| 226 // Restores the focused view. This is also used to set the initial focus | 226 // Restores the focused view. This is also used to set the initial focus |
| 227 // when a new browser window is created. | 227 // when a new browser window is created. |
| 228 void RestoreFocus(); | 228 void RestoreFocus(); |
| 229 | 229 |
| 230 // Called after the widget's fullscreen state is changed without going through | 230 // Called after the widget's fullscreen state is changed without going through |
| 231 // FullscreenController. This method does any processing which was skipped. | 231 // FullscreenController. This method does any processing which was skipped. |
| 232 // Only exiting fullscreen in this way is currently supported. | 232 // Only exiting fullscreen in this way is currently supported. |
| 233 void FullscreenStateChanged(); | 233 void FullscreenStateChanged(); |
| 234 | 234 |
| 235 // Called from BookmarkBarView/DownloadShelfView during their show/hide | |
| 236 // animations. | |
| 237 void ToolbarSizeChanged(bool is_animating); | |
| 238 | |
| 239 // Overridden from BrowserWindow: | 235 // Overridden from BrowserWindow: |
| 240 void Show() override; | 236 void Show() override; |
| 241 void ShowInactive() override; | 237 void ShowInactive() override; |
| 242 void Hide() override; | 238 void Hide() override; |
| 243 void SetBounds(const gfx::Rect& bounds) override; | 239 void SetBounds(const gfx::Rect& bounds) override; |
| 244 void Close() override; | 240 void Close() override; |
| 245 void Activate() override; | 241 void Activate() override; |
| 246 void Deactivate() override; | 242 void Deactivate() override; |
| 247 bool IsActive() const override; | 243 bool IsActive() const override; |
| 248 void FlashFrame(bool flash) override; | 244 void FlashFrame(bool flash) override; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 #if defined(OS_WIN) | 282 #if defined(OS_WIN) |
| 287 void SetMetroSnapMode(bool enable) override; | 283 void SetMetroSnapMode(bool enable) override; |
| 288 bool IsInMetroSnapMode() const override; | 284 bool IsInMetroSnapMode() const override; |
| 289 #endif // defined(OS_WIN) | 285 #endif // defined(OS_WIN) |
| 290 LocationBar* GetLocationBar() const override; | 286 LocationBar* GetLocationBar() const override; |
| 291 void SetFocusToLocationBar(bool select_all) override; | 287 void SetFocusToLocationBar(bool select_all) override; |
| 292 void UpdateReloadStopState(bool is_loading, bool force) override; | 288 void UpdateReloadStopState(bool is_loading, bool force) override; |
| 293 void UpdateToolbar(content::WebContents* contents) override; | 289 void UpdateToolbar(content::WebContents* contents) override; |
| 294 void ResetToolbarTabState(content::WebContents* contents) override; | 290 void ResetToolbarTabState(content::WebContents* contents) override; |
| 295 void FocusToolbar() override; | 291 void FocusToolbar() override; |
| 292 void ToolbarSizeChanged(bool is_animating) override; |
| 296 void FocusAppMenu() override; | 293 void FocusAppMenu() override; |
| 297 void FocusBookmarksToolbar() override; | 294 void FocusBookmarksToolbar() override; |
| 298 void FocusInfobars() override; | 295 void FocusInfobars() override; |
| 299 void RotatePaneFocus(bool forwards) override; | 296 void RotatePaneFocus(bool forwards) override; |
| 300 void DestroyBrowser() override; | 297 void DestroyBrowser() override; |
| 301 bool IsBookmarkBarVisible() const override; | 298 bool IsBookmarkBarVisible() const override; |
| 302 bool IsBookmarkBarAnimating() const override; | 299 bool IsBookmarkBarAnimating() const override; |
| 303 bool IsTabStripEditable() const override; | 300 bool IsTabStripEditable() const override; |
| 304 bool IsToolbarVisible() const override; | 301 bool IsToolbarVisible() const override; |
| 305 gfx::Rect GetRootWindowResizerRect() const override; | 302 gfx::Rect GetRootWindowResizerRect() const override; |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 scoped_ptr<ImmersiveModeController> immersive_mode_controller_; | 707 scoped_ptr<ImmersiveModeController> immersive_mode_controller_; |
| 711 | 708 |
| 712 scoped_ptr<WebContentsCloseHandler> web_contents_close_handler_; | 709 scoped_ptr<WebContentsCloseHandler> web_contents_close_handler_; |
| 713 | 710 |
| 714 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; | 711 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; |
| 715 | 712 |
| 716 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 713 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
| 717 }; | 714 }; |
| 718 | 715 |
| 719 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 716 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
| OLD | NEW |