| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/tab_contents/navigation_entry.h" | 9 #include "chrome/browser/tab_contents/navigation_entry.h" |
| 10 #include "chrome/common/content_settings_types.h" | 10 #include "chrome/common/content_settings_types.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // that the Browser is not immediately destroyed, but will be eventually | 53 // that the Browser is not immediately destroyed, but will be eventually |
| 54 // destroyed by other means (eg, the tab strip going to zero elements). | 54 // destroyed by other means (eg, the tab strip going to zero elements). |
| 55 // Bad things happen if the Browser dtor is called directly as a result of | 55 // Bad things happen if the Browser dtor is called directly as a result of |
| 56 // invoking this method. | 56 // invoking this method. |
| 57 virtual void Close() = 0; | 57 virtual void Close() = 0; |
| 58 | 58 |
| 59 // Activates (brings to front) the window. Restores the window from minimized | 59 // Activates (brings to front) the window. Restores the window from minimized |
| 60 // state if necessary. | 60 // state if necessary. |
| 61 virtual void Activate() = 0; | 61 virtual void Activate() = 0; |
| 62 | 62 |
| 63 // Deactivates the window, making the next window in the Z order the active |
| 64 // window. |
| 65 virtual void Deactivate() = 0; |
| 66 |
| 63 // Returns true if the window is currently the active/focused window. | 67 // Returns true if the window is currently the active/focused window. |
| 64 virtual bool IsActive() const = 0; | 68 virtual bool IsActive() const = 0; |
| 65 | 69 |
| 66 // Flashes the taskbar item associated with this frame. | 70 // Flashes the taskbar item associated with this frame. |
| 67 virtual void FlashFrame() = 0; | 71 virtual void FlashFrame() = 0; |
| 68 | 72 |
| 69 // Return a platform dependent identifier for this frame. On Windows, this | 73 // Return a platform dependent identifier for this frame. On Windows, this |
| 70 // returns an HWND. | 74 // returns an HWND. |
| 71 virtual gfx::NativeWindow GetNativeHandle() = 0; | 75 virtual gfx::NativeWindow GetNativeHandle() = 0; |
| 72 | 76 |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 | 357 |
| 354 // Returns the ToolbarView. | 358 // Returns the ToolbarView. |
| 355 virtual ToolbarView* GetToolbarView() const = 0; | 359 virtual ToolbarView* GetToolbarView() const = 0; |
| 356 #endif | 360 #endif |
| 357 | 361 |
| 358 protected: | 362 protected: |
| 359 virtual ~BrowserWindowTesting() {} | 363 virtual ~BrowserWindowTesting() {} |
| 360 }; | 364 }; |
| 361 | 365 |
| 362 #endif // CHROME_BROWSER_BROWSER_WINDOW_H_ | 366 #endif // CHROME_BROWSER_BROWSER_WINDOW_H_ |
| OLD | NEW |