| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_VIEWS_CONSTRAINED_WINDOW_WIN_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_CONSTRAINED_WINDOW_WIN_H_ |
| 6 #define CHROME_BROWSER_VIEWS_CONSTRAINED_WINDOW_WIN_H_ | 6 #define CHROME_BROWSER_VIEWS_CONSTRAINED_WINDOW_WIN_H_ |
| 7 | 7 |
| 8 #include "base/gfx/rect.h" | 8 #include "base/gfx/rect.h" |
| 9 #include "chrome/browser/tab_contents/constrained_window.h" | 9 #include "chrome/browser/tab_contents/constrained_window.h" |
| 10 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | 10 #include "chrome/browser/tab_contents/tab_contents_delegate.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 public: | 28 public: |
| 29 virtual ~ConstrainedWindowWin(); | 29 virtual ~ConstrainedWindowWin(); |
| 30 | 30 |
| 31 // Returns the TabContents that constrains this Constrained Window. | 31 // Returns the TabContents that constrains this Constrained Window. |
| 32 TabContents* owner() const { return owner_; } | 32 TabContents* owner() const { return owner_; } |
| 33 | 33 |
| 34 // Overridden from views::Window: | 34 // Overridden from views::Window: |
| 35 virtual views::NonClientFrameView* CreateFrameViewForWindow(); | 35 virtual views::NonClientFrameView* CreateFrameViewForWindow(); |
| 36 | 36 |
| 37 // Overridden from ConstrainedWindow: | 37 // Overridden from ConstrainedWindow: |
| 38 virtual void ShowConstrainedWindow(); |
| 38 virtual void CloseConstrainedWindow(); | 39 virtual void CloseConstrainedWindow(); |
| 39 virtual std::wstring GetWindowTitle() const; | 40 virtual std::wstring GetWindowTitle() const; |
| 40 virtual const gfx::Rect& GetCurrentBounds() const; | 41 virtual const gfx::Rect& GetCurrentBounds() const; |
| 41 | 42 |
| 42 protected: | 43 protected: |
| 43 // Windows message handlers: | 44 // Windows message handlers: |
| 44 virtual void OnDestroy(); | 45 virtual void OnDestroy(); |
| 45 virtual void OnFinalMessage(HWND window); | 46 virtual void OnFinalMessage(HWND window); |
| 46 virtual LRESULT OnMouseActivate(HWND window, UINT hittest_code, UINT message); | 47 virtual LRESULT OnMouseActivate(HWND window, UINT hittest_code, UINT message); |
| 47 virtual void OnWindowPosChanged(WINDOWPOS* window_pos); | 48 virtual void OnWindowPosChanged(WINDOWPOS* window_pos); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 65 // the constrained title bar. | 66 // the constrained title bar. |
| 66 gfx::Point anchor_point_; | 67 gfx::Point anchor_point_; |
| 67 | 68 |
| 68 // Current display rectangle (relative to owner_'s visible area). | 69 // Current display rectangle (relative to owner_'s visible area). |
| 69 gfx::Rect current_bounds_; | 70 gfx::Rect current_bounds_; |
| 70 | 71 |
| 71 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowWin); | 72 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowWin); |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 #endif // #ifndef CHROME_BROWSER_VIEWS_CONSTRAINED_WINDOW_WIN_H_ | 75 #endif // #ifndef CHROME_BROWSER_VIEWS_CONSTRAINED_WINDOW_WIN_H_ |
| OLD | NEW |