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

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

Issue 6840060: Progress towards fixing 77536 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 9 years, 8 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <string> 10 #include <string>
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 406
407 // Called when we receive a notification indicating that the renderer 407 // Called when we receive a notification indicating that the renderer
408 // process has gone. This will reset our state so that our state will be 408 // process has gone. This will reset our state so that our state will be
409 // consistent if a new renderer is created. 409 // consistent if a new renderer is created.
410 void RendererExited(base::TerminationStatus status, int exit_code); 410 void RendererExited(base::TerminationStatus status, int exit_code);
411 411
412 // Retrieves an id the renderer can use to refer to its view. 412 // Retrieves an id the renderer can use to refer to its view.
413 // This is used for various IPC messages, including plugins. 413 // This is used for various IPC messages, including plugins.
414 gfx::NativeViewId GetNativeViewId(); 414 gfx::NativeViewId GetNativeViewId();
415 415
416 // Retrieves an id for the surface that the renderer can draw to
417 // when accelerated compositing is enabled.
418 gfx::PluginWindowHandle GetCompositingSurface();
419
416 // Called to handled a keyboard event before sending it to the renderer. 420 // Called to handled a keyboard event before sending it to the renderer.
417 // This is overridden by RenderView to send upwards to its delegate. 421 // This is overridden by RenderView to send upwards to its delegate.
418 // Returns true if the event was handled, and then the keyboard event will 422 // Returns true if the event was handled, and then the keyboard event will
419 // not be sent to the renderer anymore. Otherwise, if the |event| would 423 // not be sent to the renderer anymore. Otherwise, if the |event| would
420 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut, 424 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut,
421 // |*is_keyboard_shortcut| should be set to true. 425 // |*is_keyboard_shortcut| should be set to true.
422 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 426 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
423 bool* is_keyboard_shortcut); 427 bool* is_keyboard_shortcut);
424 428
425 // Called when a keyboard event was not processed by the renderer. This is 429 // Called when a keyboard event was not processed by the renderer. This is
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 676
673 std::vector<gfx::PluginWindowHandle> deferred_plugin_handles_; 677 std::vector<gfx::PluginWindowHandle> deferred_plugin_handles_;
674 678
675 // The last scroll offset of the render widget. 679 // The last scroll offset of the render widget.
676 gfx::Point last_scroll_offset_; 680 gfx::Point last_scroll_offset_;
677 681
678 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); 682 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost);
679 }; 683 };
680 684
681 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 685 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host.cc ('k') | content/browser/renderer_host/render_widget_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698