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

Side by Side Diff: chrome/browser/render_widget_host_hwnd.h

Issue 53096: Broadcast a state change notification from the toolbar to the RenderWidgetHos... (Closed) Base URL: svn://chrome-svn/chrome/branches/release_154.next/src/
Patch Set: Created 11 years, 9 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 | « chrome/browser/controller.cc ('k') | chrome/browser/render_widget_host_hwnd.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_RENDER_WIDGET_HOST_CONTAINER_H__ 5 #ifndef CHROME_BROWSER_RENDER_WIDGET_HOST_CONTAINER_H__
6 #define CHROME_BROWSER_RENDER_WIDGET_HOST_CONTAINER_H__ 6 #define CHROME_BROWSER_RENDER_WIDGET_HOST_CONTAINER_H__
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlapp.h> 9 #include <atlapp.h>
10 #include <atlcrack.h> 10 #include <atlcrack.h>
11 #include <atlmisc.h> 11 #include <atlmisc.h>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/gfx/size.h" 14 #include "base/gfx/size.h"
15 #include "base/scoped_handle.h" 15 #include "base/scoped_handle.h"
16 #include "base/shared_memory.h" 16 #include "base/shared_memory.h"
17 #include "base/task.h" 17 #include "base/task.h"
18 #include "chrome/browser/ime_input.h" 18 #include "chrome/browser/ime_input.h"
19 #include "chrome/browser/render_widget_host_view.h" 19 #include "chrome/browser/render_widget_host_view.h"
20 #include "chrome/common/notification_service.h"
20 #include "chrome/common/render_messages.h" 21 #include "chrome/common/render_messages.h"
21 #include "chrome/views/focus_manager.h" 22 #include "chrome/views/focus_manager.h"
22 23
23 namespace gfx { 24 namespace gfx {
24 class Rect; 25 class Rect;
25 } 26 }
26 namespace IPC { 27 namespace IPC {
27 class Message; 28 class Message;
28 } 29 }
29 class RenderWidgetHost; 30 class RenderWidgetHost;
(...skipping 16 matching lines...) Expand all
46 // Comment excerpted from render_widget_host.h: 47 // Comment excerpted from render_widget_host.h:
47 // 48 //
48 // "The lifetime of the RenderWidgetHostHWND is tied to the render process. 49 // "The lifetime of the RenderWidgetHostHWND is tied to the render process.
49 // If the render process dies, the RenderWidgetHostHWND goes away and all 50 // If the render process dies, the RenderWidgetHostHWND goes away and all
50 // references to it must become NULL." 51 // references to it must become NULL."
51 // 52 //
52 class RenderWidgetHostHWND : 53 class RenderWidgetHostHWND :
53 public CWindowImpl<RenderWidgetHostHWND, 54 public CWindowImpl<RenderWidgetHostHWND,
54 CWindow, 55 CWindow,
55 RenderWidgetHostHWNDTraits>, 56 RenderWidgetHostHWNDTraits>,
56 public RenderWidgetHostView { 57 public RenderWidgetHostView,
58 public NotificationObserver {
57 public: 59 public:
58 RenderWidgetHostHWND(RenderWidgetHost* render_widget_host); 60 RenderWidgetHostHWND(RenderWidgetHost* render_widget_host);
59 virtual ~RenderWidgetHostHWND(); 61 virtual ~RenderWidgetHostHWND();
60 62
61 void set_close_on_deactivate(bool close_on_deactivate) { 63 void set_close_on_deactivate(bool close_on_deactivate) {
62 close_on_deactivate_ = close_on_deactivate; 64 close_on_deactivate_ = close_on_deactivate;
63 } 65 }
64 66
65 void set_parent_hwnd(HWND parent) { parent_hwnd_ = parent; } 67 void set_parent_hwnd(HWND parent) { parent_hwnd_ = parent; }
66 68
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 LRESULT OnGetObject(UINT message, WPARAM wparam, LPARAM lparam, 173 LRESULT OnGetObject(UINT message, WPARAM wparam, LPARAM lparam,
172 BOOL& handled); 174 BOOL& handled);
173 // Handle vertical scrolling 175 // Handle vertical scrolling
174 LRESULT OnVScroll(int code, short position, HWND scrollbar_control); 176 LRESULT OnVScroll(int code, short position, HWND scrollbar_control);
175 // Handle horizontal scrolling 177 // Handle horizontal scrolling
176 LRESULT OnHScroll(int code, short position, HWND scrollbar_control); 178 LRESULT OnHScroll(int code, short position, HWND scrollbar_control);
177 179
178 void OnFinalMessage(HWND window); 180 void OnFinalMessage(HWND window);
179 181
180 private: 182 private:
183 void Observe(NotificationType type,
184 const NotificationSource& source,
185 const NotificationDetails& details);
186
181 // Tells Windows that we want to hear about mouse exit messages. 187 // Tells Windows that we want to hear about mouse exit messages.
182 void TrackMouseLeave(bool start_tracking); 188 void TrackMouseLeave(bool start_tracking);
183 189
184 // Sends a message to the RenderView in the renderer process. 190 // Sends a message to the RenderView in the renderer process.
185 bool Send(IPC::Message* message); 191 bool Send(IPC::Message* message);
186 192
187 // Set the tooltip region to the size of the window, creating the tooltip 193 // Set the tooltip region to the size of the window, creating the tooltip
188 // hwnd if it has not been created yet. 194 // hwnd if it has not been created yet.
189 void EnsureTooltip(); 195 void EnsureTooltip();
190 196
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 TimeTicks whiteout_start_time_; 268 TimeTicks whiteout_start_time_;
263 269
264 // Whether the renderer is made accessible. 270 // Whether the renderer is made accessible.
265 bool renderer_accessible_; 271 bool renderer_accessible_;
266 272
267 DISALLOW_EVIL_CONSTRUCTORS(RenderWidgetHostHWND); 273 DISALLOW_EVIL_CONSTRUCTORS(RenderWidgetHostHWND);
268 }; 274 };
269 275
270 #endif // #ifndef CHROME_BROWSER_RENDER_WIDGET_HOST_CONTAINER_H__ 276 #endif // #ifndef CHROME_BROWSER_RENDER_WIDGET_HOST_CONTAINER_H__
271 277
OLDNEW
« no previous file with comments | « chrome/browser/controller.cc ('k') | chrome/browser/render_widget_host_hwnd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698