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

Side by Side Diff: chrome/renderer/render_widget.h

Issue 6151011: Introduce RenderView::Observer interface so that RenderView doesn't have to k... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
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_RENDERER_RENDER_WIDGET_H_ 5 #ifndef CHROME_RENDERER_RENDER_WIDGET_H_
6 #define CHROME_RENDERER_RENDER_WIDGET_H_ 6 #define CHROME_RENDERER_RENDER_WIDGET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 // a time period where we may have set a new window rect which has not yet 250 // a time period where we may have set a new window rect which has not yet
251 // been processed by the browser. So we maintain a pending window rect 251 // been processed by the browser. So we maintain a pending window rect
252 // size. If JS code sets the WindowRect, and then immediately calls 252 // size. If JS code sets the WindowRect, and then immediately calls
253 // GetWindowRect() we'll use this pending window rect as the size. 253 // GetWindowRect() we'll use this pending window rect as the size.
254 void SetPendingWindowRect(const WebKit::WebRect& r); 254 void SetPendingWindowRect(const WebKit::WebRect& r);
255 255
256 // Called by OnHandleInputEvent() to notify subclasses that a key event was 256 // Called by OnHandleInputEvent() to notify subclasses that a key event was
257 // just handled. 257 // just handled.
258 virtual void DidHandleKeyEvent() {} 258 virtual void DidHandleKeyEvent() {}
259 259
260 // Called by OnHandleInputEvent() to notify subclasses that a mouse event was
261 // just handled.
262 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {}
263
264 // Routing ID that allows us to communicate to the parent browser process 260 // Routing ID that allows us to communicate to the parent browser process
265 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. 261 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent.
266 int32 routing_id_; 262 int32 routing_id_;
267 263
268 // We are responsible for destroying this object via its Close method. 264 // We are responsible for destroying this object via its Close method.
269 WebKit::WebWidget* webwidget_; 265 WebKit::WebWidget* webwidget_;
270 266
271 // Set to the ID of the view that initiated creating this view, if any. When 267 // Set to the ID of the view that initiated creating this view, if any. When
272 // the view was initiated by the browser (the common case), this will be 268 // the view was initiated by the browser (the common case), this will be
273 // MSG_ROUTING_NONE. This is used in determining ownership when opening 269 // MSG_ROUTING_NONE. This is used in determining ownership when opening
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 bool suppress_next_char_events_; 357 bool suppress_next_char_events_;
362 358
363 // Set to true if painting to the window is handled by the accelerated 359 // Set to true if painting to the window is handled by the accelerated
364 // compositor. 360 // compositor.
365 bool is_accelerated_compositing_active_; 361 bool is_accelerated_compositing_active_;
366 362
367 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 363 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
368 }; 364 };
369 365
370 #endif // CHROME_RENDERER_RENDER_WIDGET_H_ 366 #endif // CHROME_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698