| OLD | NEW | 
|    1 // Copyright 2012 The Chromium Authors. All rights reserved. |    1 // Copyright 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_BROWSER_WINDOW_H_ |    5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 
|    6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |    6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 
|    7  |    7  | 
|    8 #include "base/callback_forward.h" |    8 #include "base/callback_forward.h" | 
|    9 #include "build/build_config.h" |    9 #include "build/build_config.h" | 
|   10 #include "chrome/browser/lifetime/browser_close_manager.h" |   10 #include "chrome/browser/lifetime/browser_close_manager.h" | 
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  139   // + or - in the app menu to change zoom). |  139   // + or - in the app menu to change zoom). | 
|  140   virtual void ZoomChangedForActiveTab(bool can_show_bubble) = 0; |  140   virtual void ZoomChangedForActiveTab(bool can_show_bubble) = 0; | 
|  141  |  141  | 
|  142   // Windows and GTK remove the top controls in fullscreen, but Mac and Ash |  142   // Windows and GTK remove the top controls in fullscreen, but Mac and Ash | 
|  143   // keep the controls in a slide-down panel. |  143   // keep the controls in a slide-down panel. | 
|  144   virtual bool ShouldHideUIForFullscreen() const = 0; |  144   virtual bool ShouldHideUIForFullscreen() const = 0; | 
|  145  |  145  | 
|  146   // Returns true if the fullscreen bubble is visible. |  146   // Returns true if the fullscreen bubble is visible. | 
|  147   virtual bool IsFullscreenBubbleVisible() const = 0; |  147   virtual bool IsFullscreenBubbleVisible() const = 0; | 
|  148  |  148  | 
 |  149   // Shows a notice teaching the user the new shortcut for going Back or | 
 |  150   // Forward. | 
 |  151   virtual void ShowNewBackShortcutBubble(bool forward) = 0; | 
 |  152  | 
|  149   // Returns the size of WebContents in the browser. This may be called before |  153   // Returns the size of WebContents in the browser. This may be called before | 
|  150   // the TabStripModel has an active tab. |  154   // the TabStripModel has an active tab. | 
|  151   virtual gfx::Size GetContentsSize() const = 0; |  155   virtual gfx::Size GetContentsSize() const = 0; | 
|  152  |  156  | 
|  153   // Returns the location bar. |  157   // Returns the location bar. | 
|  154   virtual LocationBar* GetLocationBar() const = 0; |  158   virtual LocationBar* GetLocationBar() const = 0; | 
|  155  |  159  | 
|  156   // Tries to focus the location bar.  Clears the window focus (to avoid |  160   // Tries to focus the location bar.  Clears the window focus (to avoid | 
|  157   // inconsistent state) if this fails. |  161   // inconsistent state) if this fails. | 
|  158   virtual void SetFocusToLocationBar(bool select_all) = 0; |  162   virtual void SetFocusToLocationBar(bool select_all) = 0; | 
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  378   // currently resides in. |  382   // currently resides in. | 
|  379   virtual std::string GetWorkspace() const = 0; |  383   virtual std::string GetWorkspace() const = 0; | 
|  380  |  384  | 
|  381  protected: |  385  protected: | 
|  382   friend class BrowserCloseManager; |  386   friend class BrowserCloseManager; | 
|  383   friend class BrowserView; |  387   friend class BrowserView; | 
|  384   virtual void DestroyBrowser() = 0; |  388   virtual void DestroyBrowser() = 0; | 
|  385 }; |  389 }; | 
|  386  |  390  | 
|  387 #endif  // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |  391 #endif  // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 
| OLD | NEW |