| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_BROWSER_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_WINDOW_H_ |
| 6 #define CHROME_BROWSER_BROWSER_WINDOW_H_ | 6 #define CHROME_BROWSER_BROWSER_WINDOW_H_ |
| 7 | 7 |
| 8 #include "app/gfx/native_widget_types.h" | 8 #include "app/gfx/native_widget_types.h" |
| 9 #include "chrome/browser/tab_contents/navigation_entry.h" | 9 #include "chrome/browser/tab_contents/navigation_entry.h" |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 struct NativeWebKeyboardEvent; | 24 struct NativeWebKeyboardEvent; |
| 25 | 25 |
| 26 namespace gfx { | 26 namespace gfx { |
| 27 class Rect; | 27 class Rect; |
| 28 } | 28 } |
| 29 | 29 |
| 30 //////////////////////////////////////////////////////////////////////////////// | 30 //////////////////////////////////////////////////////////////////////////////// |
| 31 // BrowserWindow interface | 31 // BrowserWindow interface |
| 32 // An interface implemented by the "view" of the Browser window. | 32 // An interface implemented by the "view" of the Browser window. |
| 33 // | 33 // |
| 34 // NOTE: All getters except GetTabStrip() may return NULL. | 34 // NOTE: All getters may return NULL. |
| 35 class BrowserWindow { | 35 class BrowserWindow { |
| 36 public: | 36 public: |
| 37 // Show the window, or activates it if it's already visible. | 37 // Show the window, or activates it if it's already visible. |
| 38 virtual void Show() = 0; | 38 virtual void Show() = 0; |
| 39 | 39 |
| 40 // Sets the window's size and position to the specified values. | 40 // Sets the window's size and position to the specified values. |
| 41 virtual void SetBounds(const gfx::Rect& bounds) = 0; | 41 virtual void SetBounds(const gfx::Rect& bounds) = 0; |
| 42 | 42 |
| 43 // Closes the frame as soon as possible. If the frame is not in a drag | 43 // Closes the frame as soon as possible. If the frame is not in a drag |
| 44 // session, it will close immediately; otherwise, it will move offscreen (so | 44 // session, it will close immediately; otherwise, it will move offscreen (so |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 | 297 |
| 298 // Returns the TabContentsContainer. | 298 // Returns the TabContentsContainer. |
| 299 virtual views::View* GetTabContentsContainerView() const = 0; | 299 virtual views::View* GetTabContentsContainerView() const = 0; |
| 300 | 300 |
| 301 // Returns the ToolbarView. | 301 // Returns the ToolbarView. |
| 302 virtual ToolbarView* GetToolbarView() const = 0; | 302 virtual ToolbarView* GetToolbarView() const = 0; |
| 303 #endif | 303 #endif |
| 304 }; | 304 }; |
| 305 | 305 |
| 306 #endif // CHROME_BROWSER_BROWSER_WINDOW_H_ | 306 #endif // CHROME_BROWSER_BROWSER_WINDOW_H_ |
| OLD | NEW |