Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/ui/constrained_window.h" | 10 #include "chrome/browser/ui/constrained_window.h" |
| 11 #include "ui/gfx/native_widget_types.h" | |
| 12 #include "ui/gfx/rect.h" | |
| 13 #include "ui/views/widget/widget.h" | 11 #include "ui/views/widget/widget.h" |
| 14 | 12 |
| 15 class TabContents; | 13 class TabContents; |
| 16 | 14 |
| 17 namespace views { | 15 namespace views { |
| 18 namespace internal { | 16 namespace internal { |
| 19 class NativeWidgetDelegate; | 17 class NativeWidgetDelegate; |
| 20 } | 18 } |
| 21 class NativeWidget; | 19 class NativeWidget; |
| 22 class NonClientFrameView; | 20 class NonClientFrameView; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 65 // Returns the TabContents that constrains this Constrained Window. | 63 // Returns the TabContents that constrains this Constrained Window. |
| 66 TabContents* owner() const { return tab_contents_; } | 64 TabContents* owner() const { return tab_contents_; } |
| 67 | 65 |
| 68 // Overridden from ConstrainedWindow: | 66 // Overridden from ConstrainedWindow: |
| 69 virtual void ShowConstrainedWindow() OVERRIDE; | 67 virtual void ShowConstrainedWindow() OVERRIDE; |
| 70 virtual void CloseConstrainedWindow() OVERRIDE; | 68 virtual void CloseConstrainedWindow() OVERRIDE; |
| 71 virtual void FocusConstrainedWindow() OVERRIDE; | 69 virtual void FocusConstrainedWindow() OVERRIDE; |
| 72 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; | 70 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; |
| 73 | 71 |
| 74 private: | 72 private: |
| 75 // Overridden from views::Widget: | |
| 76 virtual views::NonClientFrameView* CreateNonClientFrameView() OVERRIDE; | |
| 77 | |
| 78 // Overridden from NativeConstrainedWindowDelegate: | 73 // Overridden from NativeConstrainedWindowDelegate: |
| 79 virtual void OnNativeConstrainedWindowDestroyed() OVERRIDE; | 74 virtual void OnNativeConstrainedWindowDestroyed() OVERRIDE; |
| 80 virtual void OnNativeConstrainedWindowMouseActivate() OVERRIDE; | 75 virtual void OnNativeConstrainedWindowMouseActivate() OVERRIDE; |
| 81 virtual views::internal::NativeWidgetDelegate* | 76 virtual views::internal::NativeWidgetDelegate* |
| 82 AsNativeWidgetDelegate() OVERRIDE; | 77 AsNativeWidgetDelegate() OVERRIDE; |
| 83 | 78 |
| 79 // Overridden from views::Widget: | |
|
groby-ooo-7-16
2012/06/22 19:01:05
Personal nit: Why not keep the overrides in the sa
Albert Bodenhamer
2012/06/22 22:22:24
Done.
| |
| 80 virtual views::NonClientFrameView* CreateNonClientFrameView() OVERRIDE; | |
| 81 | |
| 84 TabContents* tab_contents_; | 82 TabContents* tab_contents_; |
| 85 | 83 |
| 86 NativeConstrainedWindow* native_constrained_window_; | 84 NativeConstrainedWindow* native_constrained_window_; |
| 87 | 85 |
| 88 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowViews); | 86 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowViews); |
| 89 }; | 87 }; |
| 90 | 88 |
| 91 #endif // CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_ | 89 #endif // CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_ |
| OLD | NEW |