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

Unified Diff: content/browser/renderer_host/render_widget_host_view_win.h

Issue 9254046: Custom frame UI for platform apps on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots Created 8 years, 10 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: content/browser/renderer_host/render_widget_host_view_win.h
diff --git a/content/browser/renderer_host/render_widget_host_view_win.h b/content/browser/renderer_host/render_widget_host_view_win.h
index a4a6a056b5ce68d231901112385097ba82d54b71..55f41901f833f8813a394e1d4cb3794390728c19 100644
--- a/content/browser/renderer_host/render_widget_host_view_win.h
+++ b/content/browser/renderer_host/render_widget_host_view_win.h
@@ -27,6 +27,7 @@
#include "ui/base/win/ime_input.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/point.h"
+#include "ui/gfx/scoped_sk_region.h"
#include "ui/gfx/surface/accelerated_surface_win.h"
#include "webkit/glue/webcursor.h"
@@ -103,6 +104,7 @@ class RenderWidgetHostViewWin
MSG_WM_DESTROY(OnDestroy)
MSG_WM_PAINT(OnPaint)
MSG_WM_NCPAINT(OnNCPaint)
+ MSG_WM_NCHITTEST(OnNCHitTest)
MSG_WM_ERASEBKGND(OnEraseBkgnd)
MSG_WM_SETCURSOR(OnSetCursor)
MSG_WM_SETFOCUS(OnSetFocus)
@@ -211,6 +213,7 @@ class RenderWidgetHostViewWin
) OVERRIDE;
virtual bool LockMouse() OVERRIDE;
virtual void UnlockMouse() OVERRIDE;
+ virtual void SetTransparentRegion(SkRegion* region) OVERRIDE;
// Implementation of content::NotificationObserver:
virtual void Observe(int type,
@@ -241,6 +244,7 @@ class RenderWidgetHostViewWin
void OnDestroy();
void OnPaint(HDC unused_dc);
void OnNCPaint(HRGN update_region);
+ LRESULT OnNCHitTest(const CPoint& pt);
LRESULT OnEraseBkgnd(HDC dc);
LRESULT OnSetCursor(HWND window, UINT hittest_code, UINT mouse_message_id);
void OnSetFocus(HWND window);
@@ -546,6 +550,9 @@ class RenderWidgetHostViewWin
// Set to true if we received a focus change after a WM_POINTERDOWN message.
bool received_focus_change_after_pointer_down_;
+ // Region in which the view will be transparent to clicks.
+ gfx::ScopedSkRegion transparent_region_;
+
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin);
};

Powered by Google App Engine
This is Rietveld 408576698