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

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

Issue 155378: Replace ShowAsPopupWithItems to CreatePopupWidgetWithInfo. Also,... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_widget_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 20 matching lines...) Expand all
31 31
32 class BackingStore; 32 class BackingStore;
33 class PaintObserver; 33 class PaintObserver;
34 class RenderProcessHost; 34 class RenderProcessHost;
35 class RenderWidgetHostView; 35 class RenderWidgetHostView;
36 class RenderWidgetHostPaintingObserver; 36 class RenderWidgetHostPaintingObserver;
37 class TransportDIB; 37 class TransportDIB;
38 class WebCursor; 38 class WebCursor;
39 struct ViewHostMsg_PaintRect_Params; 39 struct ViewHostMsg_PaintRect_Params;
40 struct ViewHostMsg_ScrollRect_Params; 40 struct ViewHostMsg_ScrollRect_Params;
41 struct ViewHostMsg_ShowPopup_Params;
41 42
42 // This class manages the browser side of a browser<->renderer HWND connection. 43 // This class manages the browser side of a browser<->renderer HWND connection.
43 // The HWND lives in the browser process, and windows events are sent over 44 // The HWND lives in the browser process, and windows events are sent over
44 // IPC to the corresponding object in the renderer. The renderer paints into 45 // IPC to the corresponding object in the renderer. The renderer paints into
45 // shared memory, which we transfer to a backing store and blit to the screen 46 // shared memory, which we transfer to a backing store and blit to the screen
46 // when Windows sends us a WM_PAINT message. 47 // when Windows sends us a WM_PAINT message.
47 // 48 //
48 // How Shutdown Works 49 // How Shutdown Works
49 // 50 //
50 // There are two situations in which this object, a RenderWidgetHost, can be 51 // There are two situations in which this object, a RenderWidgetHost, can be
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 void OnMsgFocus(); 390 void OnMsgFocus();
390 void OnMsgBlur(); 391 void OnMsgBlur();
391 void OnMsgSetCursor(const WebCursor& cursor); 392 void OnMsgSetCursor(const WebCursor& cursor);
392 // Using int instead of ViewHostMsg_ImeControl for control's type to avoid 393 // Using int instead of ViewHostMsg_ImeControl for control's type to avoid
393 // having to bring in render_messages.h in a header file. 394 // having to bring in render_messages.h in a header file.
394 void OnMsgImeUpdateStatus(int control, const gfx::Rect& caret_rect); 395 void OnMsgImeUpdateStatus(int control, const gfx::Rect& caret_rect);
395 #if defined(OS_LINUX) 396 #if defined(OS_LINUX)
396 void OnMsgCreatePluginContainer(gfx::PluginWindowHandle *container); 397 void OnMsgCreatePluginContainer(gfx::PluginWindowHandle *container);
397 void OnMsgDestroyPluginContainer(gfx::PluginWindowHandle container); 398 void OnMsgDestroyPluginContainer(gfx::PluginWindowHandle container);
398 #elif defined(OS_MACOSX) 399 #elif defined(OS_MACOSX)
399 void OnMsgShowPopup(const IPC::Message& message); 400 void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params);
400 void OnMsgGetScreenInfo(gfx::NativeViewId view, 401 void OnMsgGetScreenInfo(gfx::NativeViewId view,
401 WebKit::WebScreenInfo* results); 402 WebKit::WebScreenInfo* results);
402 void OnMsgGetWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); 403 void OnMsgGetWindowRect(gfx::NativeViewId window_id, gfx::Rect* results);
403 void OnMsgGetRootWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); 404 void OnMsgGetRootWindowRect(gfx::NativeViewId window_id, gfx::Rect* results);
404 #endif 405 #endif
405 406
406 // Paints the given bitmap to the current backing store at the given location. 407 // Paints the given bitmap to the current backing store at the given location.
407 void PaintBackingStoreRect(TransportDIB* dib, 408 void PaintBackingStoreRect(TransportDIB* dib,
408 const gfx::Rect& bitmap_rect, 409 const gfx::Rect& bitmap_rect,
409 const gfx::Size& view_size); 410 const gfx::Size& view_size);
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 509
509 // Set when we cancel updating the text direction. 510 // Set when we cancel updating the text direction.
510 // This flag also ignores succeeding update requests until we call 511 // This flag also ignores succeeding update requests until we call
511 // NotifyTextDirection(). 512 // NotifyTextDirection().
512 bool text_direction_canceled_; 513 bool text_direction_canceled_;
513 514
514 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); 515 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost);
515 }; 516 };
516 517
517 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 518 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_widget_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698