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

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

Issue 9391024: Custom frame UI for platform apps on Windows. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: "Transparent" -> "Clickthrough", fix patchset 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
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | content/browser/renderer_host/render_widget_host_view_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 793ff76848ecec59779cef0dbf42a80984f5125c..419bae21fec65ec4b92cf9894a4d5c19c3a75a21 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)
@@ -213,6 +215,7 @@ class RenderWidgetHostViewWin
) OVERRIDE;
virtual bool LockMouse() OVERRIDE;
virtual void UnlockMouse() OVERRIDE;
+ virtual void SetClickthroughRegion(SkRegion* region) OVERRIDE;
// Implementation of content::NotificationObserver:
virtual void Observe(int type,
@@ -243,6 +246,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);
@@ -539,6 +543,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);
};
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | content/browser/renderer_host/render_widget_host_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698