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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view.h

Issue 4078003: Refactoring select popup on Mac.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(OS_MACOSX) 9 #if defined(OS_MACOSX)
10 #include <OpenGL/OpenGL.h> 10 #include <OpenGL/OpenGL.h>
(...skipping 16 matching lines...) Expand all
27 class Message; 27 class Message;
28 } 28 }
29 29
30 class BackingStore; 30 class BackingStore;
31 class RenderProcessHost; 31 class RenderProcessHost;
32 class RenderWidgetHost; 32 class RenderWidgetHost;
33 class VideoLayer; 33 class VideoLayer;
34 class WebCursor; 34 class WebCursor;
35 struct NativeWebKeyboardEvent; 35 struct NativeWebKeyboardEvent;
36 struct ViewHostMsg_AccessibilityNotification_Params; 36 struct ViewHostMsg_AccessibilityNotification_Params;
37 struct WebMenuItem;
38 37
39 namespace webkit_glue { 38 namespace webkit_glue {
40 struct WebAccessibility; 39 struct WebAccessibility;
41 struct WebPluginGeometry; 40 struct WebPluginGeometry;
42 } 41 }
43 42
44 // RenderWidgetHostView is an interface implemented by an object that acts as 43 // RenderWidgetHostView is an interface implemented by an object that acts as
45 // the "View" portion of a RenderWidgetHost. The RenderWidgetHost and its 44 // the "View" portion of a RenderWidgetHost. The RenderWidgetHost and its
46 // associated RenderProcessHost own the "Model" in this case which is the 45 // associated RenderProcessHost own the "Model" in this case which is the
47 // child renderer process. The View is responsible for receiving events from 46 // child renderer process. The View is responsible for receiving events from
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // Allocate a video layer for this view. 176 // Allocate a video layer for this view.
178 virtual VideoLayer* AllocVideoLayer(const gfx::Size& size) = 0; 177 virtual VideoLayer* AllocVideoLayer(const gfx::Size& size) = 0;
179 178
180 #if defined(OS_MACOSX) 179 #if defined(OS_MACOSX)
181 // Tells the view whether or not to accept first responder status. If |flag| 180 // Tells the view whether or not to accept first responder status. If |flag|
182 // is true, the view does not accept first responder status and instead 181 // is true, the view does not accept first responder status and instead
183 // manually becomes first responder when it receives a mouse down event. If 182 // manually becomes first responder when it receives a mouse down event. If
184 // |flag| is false, the view participates in the key-view chain as normal. 183 // |flag| is false, the view participates in the key-view chain as normal.
185 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) = 0; 184 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) = 0;
186 185
187 // Display a native control popup menu for WebKit.
188 virtual void ShowPopupWithItems(gfx::Rect bounds,
189 int item_height,
190 double item_font_size,
191 int selected_item,
192 const std::vector<WebMenuItem>& items,
193 bool right_aligned) = 0;
194
195 // Get the view's position on the screen. 186 // Get the view's position on the screen.
196 virtual gfx::Rect GetWindowRect() = 0; 187 virtual gfx::Rect GetWindowRect() = 0;
197 188
198 // Get the view's window's position on the screen. 189 // Get the view's window's position on the screen.
199 virtual gfx::Rect GetRootWindowRect() = 0; 190 virtual gfx::Rect GetRootWindowRect() = 0;
200 191
201 // Set the view's active state (i.e., tint state of controls). 192 // Set the view's active state (i.e., tint state of controls).
202 virtual void SetActive(bool active) = 0; 193 virtual void SetActive(bool active) = 0;
203 194
204 // Notifies the view that its enclosing window has changed visibility 195 // Notifies the view that its enclosing window has changed visibility
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 274
284 // A custom background to paint behind the web content. This will be tiled 275 // A custom background to paint behind the web content. This will be tiled
285 // horizontally. Can be null, in which case we fall back to painting white. 276 // horizontally. Can be null, in which case we fall back to painting white.
286 SkBitmap background_; 277 SkBitmap background_;
287 278
288 private: 279 private:
289 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); 280 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView);
290 }; 281 };
291 282
292 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 283 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host.cc ('k') | chrome/browser/renderer_host/render_widget_host_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698