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

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

Issue 147246: Linux: middle-click to navigate (Closed)
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
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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 331
332 // Called when we receive a notification indicating that the renderer 332 // Called when we receive a notification indicating that the renderer
333 // process has gone. This will reset our state so that our state will be 333 // process has gone. This will reset our state so that our state will be
334 // consistent if a new renderer is created. 334 // consistent if a new renderer is created.
335 void RendererExited(); 335 void RendererExited();
336 336
337 // Retrieves an id the renderer can use to refer to its view. 337 // Retrieves an id the renderer can use to refer to its view.
338 // This is used for various IPC messages, including plugins. 338 // This is used for various IPC messages, including plugins.
339 gfx::NativeViewId GetNativeViewId(); 339 gfx::NativeViewId GetNativeViewId();
340 340
341 // Called when we an InputEvent was not processed by the renderer. This is 341 // Called when an InputEvent was not processed by the renderer. This is
342 // overridden by RenderView to send upwards to its delegate. 342 // overridden by RenderView to send upwards to its delegate.
343 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event) {} 343 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event) {}
344 344
345 // Called when an InputEvent was not processed by the renderer. This is
346 // overridden by RenderView to send upwards to its delegate.
347 virtual void UnhandledMouseButtonEvent(const WebKit::WebMouseEvent* event) {}
348
345 // Notification that the user has made some kind of input that could 349 // Notification that the user has made some kind of input that could
346 // perform an action. The render view host overrides this to forward the 350 // perform an action. The render view host overrides this to forward the
347 // information to its delegate (see corresponding function in 351 // information to its delegate (see corresponding function in
348 // RenderViewHostDelegate). The gestures that count are 1) any mouse down 352 // RenderViewHostDelegate). The gestures that count are 1) any mouse down
349 // event and 2) enter or space key presses. 353 // event and 2) enter or space key presses.
350 virtual void OnUserGesture() {} 354 virtual void OnUserGesture() {}
351 355
352 // Callbacks for notification when the renderer becomes unresponsive to user 356 // Callbacks for notification when the renderer becomes unresponsive to user
353 // input events, and subsequently responsive again. RenderViewHost overrides 357 // input events, and subsequently responsive again. RenderViewHost overrides
354 // these to tell its delegate to show the user a warning. 358 // these to tell its delegate to show the user a warning.
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 base::TimeTicks repaint_start_time_; 489 base::TimeTicks repaint_start_time_;
486 490
487 // Queue of keyboard events that we need to track. 491 // Queue of keyboard events that we need to track.
488 typedef std::queue<NativeWebKeyboardEvent> KeyQueue; 492 typedef std::queue<NativeWebKeyboardEvent> KeyQueue;
489 493
490 // A queue of keyboard events. We can't trust data from the renderer so we 494 // A queue of keyboard events. We can't trust data from the renderer so we
491 // stuff key events into a queue and pop them out on ACK, feeding our copy 495 // stuff key events into a queue and pop them out on ACK, feeding our copy
492 // back to whatever unhandled handler instead of the returned version. 496 // back to whatever unhandled handler instead of the returned version.
493 KeyQueue key_queue_; 497 KeyQueue key_queue_;
494 498
499 // Queue of mouse button events that we need to track.
500 typedef std::queue<WebKit::WebMouseEvent*> MouseButtonQueue;
501
502 // A queue of keyboard events. We can't trust data from the renderer so we
503 // stuff key events into a queue and pop them out on ACK, feeding our copy
504 // back to whatever unhandled handler instead of the returned version.
505 MouseButtonQueue mouse_button_queue_;
506
495 // Set when we update the text direction of the selected input element. 507 // Set when we update the text direction of the selected input element.
496 bool text_direction_updated_; 508 bool text_direction_updated_;
497 WebTextDirection text_direction_; 509 WebTextDirection text_direction_;
498 510
499 // Set when we cancel updating the text direction. 511 // Set when we cancel updating the text direction.
500 // This flag also ignores succeeding update requests until we call 512 // This flag also ignores succeeding update requests until we call
501 // NotifyTextDirection(). 513 // NotifyTextDirection().
502 bool text_direction_canceled_; 514 bool text_direction_canceled_;
503 515
504 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); 516 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost);
505 }; 517 };
506 518
507 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 519 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host_delegate.h ('k') | chrome/browser/renderer_host/render_widget_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698