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

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

Issue 165293: Supports Gtk keyboard themes.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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/renderer/render_view.cc ('k') | chrome/renderer/render_widget.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_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 7
8 #include <vector> 8 #include <vector>
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/gfx/native_widget_types.h" 10 #include "base/gfx/native_widget_types.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 void ClearFocus(); 189 void ClearFocus();
190 190
191 // Set the pending window rect. 191 // Set the pending window rect.
192 // Because the real render_widget is hosted in another process, there is 192 // Because the real render_widget is hosted in another process, there is
193 // a time period where we may have set a new window rect which has not yet 193 // a time period where we may have set a new window rect which has not yet
194 // been processed by the browser. So we maintain a pending window rect 194 // been processed by the browser. So we maintain a pending window rect
195 // size. If JS code sets the WindowRect, and then immediately calls 195 // size. If JS code sets the WindowRect, and then immediately calls
196 // GetWindowRect() we'll use this pending window rect as the size. 196 // GetWindowRect() we'll use this pending window rect as the size.
197 void SetPendingWindowRect(const WebKit::WebRect& r); 197 void SetPendingWindowRect(const WebKit::WebRect& r);
198 198
199 // Called by OnHandleInputEvent() to notify subclasses that a key event was
200 // just handled.
201 virtual void DidHandleKeyEvent() {}
202
199 // Routing ID that allows us to communicate to the parent browser process 203 // Routing ID that allows us to communicate to the parent browser process
200 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. 204 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent.
201 int32 routing_id_; 205 int32 routing_id_;
202 206
203 // We are responsible for destroying this object via its Close method. 207 // We are responsible for destroying this object via its Close method.
204 WebKit::WebWidget* webwidget_; 208 WebKit::WebWidget* webwidget_;
205 209
206 // Set to the ID of the view that initiated creating this view, if any. When 210 // Set to the ID of the view that initiated creating this view, if any. When
207 // the view was initiated by the browser (the common case), this will be 211 // the view was initiated by the browser (the common case), this will be
208 // MSG_ROUTING_NONE. This is used in determining ownership when opening 212 // MSG_ROUTING_NONE. This is used in determining ownership when opening
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 WebKit::WebRect pending_window_rect_; 316 WebKit::WebRect pending_window_rect_;
313 317
314 scoped_ptr<ViewHostMsg_ShowPopup_Params> popup_params_; 318 scoped_ptr<ViewHostMsg_ShowPopup_Params> popup_params_;
315 319
316 scoped_ptr<IPC::Message> pending_input_event_ack_; 320 scoped_ptr<IPC::Message> pending_input_event_ack_;
317 321
318 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 322 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
319 }; 323 };
320 324
321 #endif // CHROME_RENDERER_RENDER_WIDGET_H_ 325 #endif // CHROME_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | chrome/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698