Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1647)

Unified Diff: chrome/browser/ui/views/constrained_window_views.h

Issue 7015051: Re-land: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/constrained_window_views.h
===================================================================
--- chrome/browser/ui/views/constrained_window_views.h (revision 85284)
+++ chrome/browser/ui/views/constrained_window_views.h (working copy)
@@ -10,11 +10,15 @@
#include "content/browser/tab_contents/constrained_window.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/rect.h"
+#include "views/window/window.h"
class ConstrainedTabContentsWindowDelegate;
class ConstrainedWindowAnimation;
class ConstrainedWindowFrameView;
namespace views {
+namespace internal {
+class NativeWindowDelegate;
+}
class NativeWindow;
class NonClientFrameView;
class Window;
@@ -35,6 +39,8 @@
// Creates the frame view for the constrained window.
// TODO(beng): remove once ConstrainedWindowViews is-a views::Window.
virtual views::NonClientFrameView* CreateFrameViewForWindow() = 0;
+
+ virtual views::internal::NativeWindowDelegate* AsNativeWindowDelegate() = 0;
};
class NativeConstrainedWindow {
@@ -54,7 +60,8 @@
// A ConstrainedWindow implementation that implements a Constrained Window as
// a child HWND with a custom window frame.
//
-class ConstrainedWindowViews : public ConstrainedWindow,
+class ConstrainedWindowViews : public views::Window,
+ public ConstrainedWindow,
public NativeConstrainedWindowDelegate {
public:
ConstrainedWindowViews(TabContents* owner,
@@ -72,10 +79,14 @@
virtual void FocusConstrainedWindow() OVERRIDE;
private:
+ // Overridden from views::Window:
+ virtual views::NonClientFrameView* CreateFrameViewForWindow() OVERRIDE;
+
// Overridden from NativeConstrainedWindowDelegate:
virtual void OnNativeConstrainedWindowDestroyed() OVERRIDE;
virtual void OnNativeConstrainedWindowMouseActivate() OVERRIDE;
- virtual views::NonClientFrameView* CreateFrameViewForWindow() OVERRIDE;
+ virtual views::internal::NativeWindowDelegate*
+ AsNativeWindowDelegate() OVERRIDE;
// The TabContents that owns and constrains this ConstrainedWindow.
TabContents* owner_;
« no previous file with comments | « chrome/browser/ui/views/constrained_html_delegate_gtk.cc ('k') | chrome/browser/ui/views/constrained_window_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698