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

Side by Side Diff: content/public/browser/render_widget_host_view.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 unified diff | Download patch
OLDNEW
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 CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(TOOLKIT_USES_GTK) 9 #if defined(TOOLKIT_USES_GTK)
10 #include <gdk/gdk.h> 10 #include <gdk/gdk.h>
11 #endif 11 #endif
12 12
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "third_party/skia/include/core/SkBitmap.h" 14 #include "third_party/skia/include/core/SkBitmap.h"
15 #include "third_party/skia/include/core/SkRegion.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
16 #include "ui/gfx/native_widget_types.h" 17 #include "ui/gfx/native_widget_types.h"
17 18
18 class BrowserAccessibilityManager; 19 class BrowserAccessibilityManager;
19 class RenderWidgetHost; 20 class RenderWidgetHost;
20 21
21 namespace gfx { 22 namespace gfx {
22 class Rect; 23 class Rect;
23 class Size; 24 class Size;
24 } 25 }
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 130
130 // Subclasses should override this method to do what is appropriate to set 131 // Subclasses should override this method to do what is appropriate to set
131 // the custom background for their platform. 132 // the custom background for their platform.
132 virtual void SetBackground(const SkBitmap& background) = 0; 133 virtual void SetBackground(const SkBitmap& background) = 0;
133 virtual const SkBitmap& GetBackground() = 0; 134 virtual const SkBitmap& GetBackground() = 0;
134 135
135 // TODO(joi): Remove this when we remove the dependency by chrome/ 136 // TODO(joi): Remove this when we remove the dependency by chrome/
136 // on browser_accessibility* files in content. 137 // on browser_accessibility* files in content.
137 virtual BrowserAccessibilityManager* 138 virtual BrowserAccessibilityManager*
138 GetBrowserAccessibilityManager() const = 0; 139 GetBrowserAccessibilityManager() const = 0;
140
141 #if defined(OS_WIN) && !defined(USE_AURA)
142 // The region specified will be transparent to mouse clicks.
143 virtual void SetClickthroughRegion(SkRegion* region) {}
144 #endif
139 }; 145 };
140 146
141 } // namespace content 147 } // namespace content
142 148
143 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 149 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
144 150
145 151
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | ui/views/widget/native_widget_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698