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

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

Issue 224023: Don't send tab switching/killing/creating keyboard accelerators to pages. Th... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: call Browser:IsReservedAccelerator from tab_contents_view.cc instead of each platform file Created 11 years, 2 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_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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 350
351 // Called when we receive a notification indicating that the renderer 351 // Called when we receive a notification indicating that the renderer
352 // process has gone. This will reset our state so that our state will be 352 // process has gone. This will reset our state so that our state will be
353 // consistent if a new renderer is created. 353 // consistent if a new renderer is created.
354 void RendererExited(); 354 void RendererExited();
355 355
356 // Retrieves an id the renderer can use to refer to its view. 356 // Retrieves an id the renderer can use to refer to its view.
357 // This is used for various IPC messages, including plugins. 357 // This is used for various IPC messages, including plugins.
358 gfx::NativeViewId GetNativeViewId(); 358 gfx::NativeViewId GetNativeViewId();
359 359
360 // Called when an InputEvent is received to check if the event should be sent
361 // to the renderer or not.
362 virtual bool ShouldSendToRenderer(const NativeWebKeyboardEvent& event) {
363 return true;
364 }
365
360 // Called when we an InputEvent was not processed by the renderer. This is 366 // Called when we an InputEvent was not processed by the renderer. This is
361 // overridden by RenderView to send upwards to its delegate. 367 // overridden by RenderView to send upwards to its delegate.
362 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event) {} 368 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event) {}
363 369
364 // Notification that the user has made some kind of input that could 370 // Notification that the user has made some kind of input that could
365 // perform an action. The render view host overrides this to forward the 371 // perform an action. The render view host overrides this to forward the
366 // information to its delegate (see corresponding function in 372 // information to its delegate (see corresponding function in
367 // RenderViewHostDelegate). The gestures that count are 1) any mouse down 373 // RenderViewHostDelegate). The gestures that count are 1) any mouse down
368 // event and 2) enter or space key presses. 374 // event and 2) enter or space key presses.
369 virtual void OnUserGesture() {} 375 virtual void OnUserGesture() {}
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 541
536 // Set when we cancel updating the text direction. 542 // Set when we cancel updating the text direction.
537 // This flag also ignores succeeding update requests until we call 543 // This flag also ignores succeeding update requests until we call
538 // NotifyTextDirection(). 544 // NotifyTextDirection().
539 bool text_direction_canceled_; 545 bool text_direction_canceled_;
540 546
541 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); 547 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost);
542 }; 548 };
543 549
544 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 550 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698