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

Unified Diff: ui/views/widget/native_widget_win.h

Issue 10836266: Begin to move some message handling from NWW onto a framework-agnostic HWND Message handler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « ui/views/widget/hwnd_message_handler_delegate.h ('k') | ui/views/widget/native_widget_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_win.h
===================================================================
--- ui/views/widget/native_widget_win.h (revision 151828)
+++ ui/views/widget/native_widget_win.h (working copy)
@@ -24,6 +24,7 @@
#include "ui/base/win/window_impl.h"
#include "ui/views/focus/focus_manager.h"
#include "ui/views/layout/layout_manager.h"
+#include "ui/views/widget/hwnd_message_handler_delegate.h"
#include "ui/views/widget/native_widget_private.h"
namespace ui {
@@ -40,6 +41,7 @@
namespace views {
class DropTargetWin;
+class HWNDMessageHandler;
class RootView;
class TooltipManagerWin;
@@ -69,7 +71,8 @@
///////////////////////////////////////////////////////////////////////////////
class VIEWS_EXPORT NativeWidgetWin : public ui::WindowImpl,
public MessageLoopForUI::Observer,
- public internal::NativeWidgetPrivate {
+ public internal::NativeWidgetPrivate,
+ public HWNDMessageHandlerDelegate {
public:
explicit NativeWidgetWin(internal::NativeWidgetDelegate* delegate);
virtual ~NativeWidgetWin();
@@ -483,6 +486,25 @@
typedef ScopedVector<ui::ViewProp> ViewProps;
typedef std::set<DWORD> TouchIDs;
+ // TODO(beng): This friendship can be removed once all methods relating to
+ // this object being a WindowImpl are moved to HWNDMessageHandler.
+ friend HWNDMessageHandler;
+
+ // Overridden from HWNDMessageHandlerDelegate:
+ virtual bool IsWidgetWindow() const OVERRIDE;
+ virtual bool IsUsingCustomFrame() const OVERRIDE;
+ virtual void HandleAppDeactivated() OVERRIDE;
+ virtual bool HandleAppCommand(short command) OVERRIDE;
+ virtual void HandleCaptureLost() OVERRIDE;
+ virtual void HandleClose() OVERRIDE;
+ virtual bool HandleCommand(int command) OVERRIDE;
+ virtual void HandleDestroy() OVERRIDE;
+ virtual void HandleDisplayChange() OVERRIDE;
+ virtual void HandleGlassModeChange() OVERRIDE;
+ virtual void HandleBeginWMSizeMove() OVERRIDE;
+ virtual void HandleEndWMSizeMove() OVERRIDE;
+ virtual NativeWidgetWin* AsNativeWidgetWin() OVERRIDE;
+
// Called after the WM_ACTIVATE message has been processed by the default
// windows procedure.
static void PostProcessActivateMessage(NativeWidgetWin* widget,
@@ -677,11 +699,11 @@
// Init time, before the Widget has created the NonClientView.
bool has_non_client_view_;
- bool remove_standard_frame_;
-
// The set of touch devices currently down.
TouchIDs touch_ids_;
+ scoped_ptr<HWNDMessageHandler> message_handler_;
+
DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin);
};
« no previous file with comments | « ui/views/widget/hwnd_message_handler_delegate.h ('k') | ui/views/widget/native_widget_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698