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> |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 virtual void UpdateTitleBar() OVERRIDE; | 251 virtual void UpdateTitleBar() OVERRIDE; |
252 virtual void BookmarkBarStateChanged( | 252 virtual void BookmarkBarStateChanged( |
253 BookmarkBar::AnimateChangeType change_type) OVERRIDE; | 253 BookmarkBar::AnimateChangeType change_type) OVERRIDE; |
254 virtual void UpdateDevTools() OVERRIDE; | 254 virtual void UpdateDevTools() OVERRIDE; |
255 virtual void UpdateLoadingAnimations(bool should_animate) OVERRIDE; | 255 virtual void UpdateLoadingAnimations(bool should_animate) OVERRIDE; |
256 virtual void SetStarredState(bool is_starred) OVERRIDE; | 256 virtual void SetStarredState(bool is_starred) OVERRIDE; |
257 virtual gfx::Rect GetRestoredBounds() const OVERRIDE; | 257 virtual gfx::Rect GetRestoredBounds() const OVERRIDE; |
258 virtual gfx::Rect GetBounds() const OVERRIDE; | 258 virtual gfx::Rect GetBounds() const OVERRIDE; |
259 virtual bool IsMaximized() const OVERRIDE; | 259 virtual bool IsMaximized() const OVERRIDE; |
260 virtual bool IsMinimized() const OVERRIDE; | 260 virtual bool IsMinimized() const OVERRIDE; |
261 virtual void SetFullscreen(bool fullscreen) OVERRIDE; | 261 virtual void SetFullscreen(bool fullscreen, const GURL& url, bool show_buttons
) OVERRIDE; |
262 virtual bool IsFullscreen() const OVERRIDE; | 262 virtual bool IsFullscreen() const OVERRIDE; |
263 virtual LocationBar* GetLocationBar() const OVERRIDE; | 263 virtual LocationBar* GetLocationBar() const OVERRIDE; |
264 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE; | 264 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE; |
265 virtual void UpdateReloadStopState(bool is_loading, bool force) OVERRIDE; | 265 virtual void UpdateReloadStopState(bool is_loading, bool force) OVERRIDE; |
266 virtual void UpdateToolbar(TabContentsWrapper* contents, | 266 virtual void UpdateToolbar(TabContentsWrapper* contents, |
267 bool should_restore_state) OVERRIDE; | 267 bool should_restore_state) OVERRIDE; |
268 virtual void FocusToolbar() OVERRIDE; | 268 virtual void FocusToolbar() OVERRIDE; |
269 virtual void FocusAppMenu() OVERRIDE; | 269 virtual void FocusAppMenu() OVERRIDE; |
270 virtual void FocusBookmarksToolbar() OVERRIDE; | 270 virtual void FocusBookmarksToolbar() OVERRIDE; |
271 virtual void FocusChromeOSStatus() OVERRIDE {} | 271 virtual void FocusChromeOSStatus() OVERRIDE {} |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 // the new_view is added. This is intended to be used when swapping in/out | 498 // the new_view is added. This is intended to be used when swapping in/out |
499 // child views that are referenced via a field. | 499 // child views that are referenced via a field. |
500 // Returns true if anything was changed, and a re-Layout is now required. | 500 // Returns true if anything was changed, and a re-Layout is now required. |
501 bool UpdateChildViewAndLayout(views::View* new_view, views::View** old_view); | 501 bool UpdateChildViewAndLayout(views::View* new_view, views::View** old_view); |
502 | 502 |
503 // Invoked to update the necessary things when our fullscreen state changes | 503 // Invoked to update the necessary things when our fullscreen state changes |
504 // to |fullscreen|. On Windows this is invoked immediately when we toggle the | 504 // to |fullscreen|. On Windows this is invoked immediately when we toggle the |
505 // full screen state. On Linux changing the fullscreen state is async, so we | 505 // full screen state. On Linux changing the fullscreen state is async, so we |
506 // ask the window to change it's fullscreen state, then when we get | 506 // ask the window to change it's fullscreen state, then when we get |
507 // notification that it succeeded this method is invoked. | 507 // notification that it succeeded this method is invoked. |
508 void ProcessFullscreen(bool fullscreen); | 508 void ProcessFullscreen(bool fullscreen, const GURL& url, bool show_buttons); |
509 | 509 |
510 // Copy the accelerator table from the app resources into something we can | 510 // Copy the accelerator table from the app resources into something we can |
511 // use. | 511 // use. |
512 void LoadAccelerators(); | 512 void LoadAccelerators(); |
513 | 513 |
514 #if defined(OS_WIN) | 514 #if defined(OS_WIN) |
515 // Builds the correct menu for when we have minimal chrome. | 515 // Builds the correct menu for when we have minimal chrome. |
516 void BuildSystemMenuForBrowserWindow(); | 516 void BuildSystemMenuForBrowserWindow(); |
517 void BuildSystemMenuForAppOrPopupWindow(); | 517 void BuildSystemMenuForAppOrPopupWindow(); |
518 | 518 |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 base::TimeTicks last_animation_time_; | 698 base::TimeTicks last_animation_time_; |
699 | 699 |
700 // If this flag is set then SetFocusToLocationBar() will set focus to the | 700 // If this flag is set then SetFocusToLocationBar() will set focus to the |
701 // location bar even if the browser window is not active. | 701 // location bar even if the browser window is not active. |
702 bool force_location_bar_focus_; | 702 bool force_location_bar_focus_; |
703 | 703 |
704 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 704 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
705 }; | 705 }; |
706 | 706 |
707 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 707 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |