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

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

Issue 4815001: Use inner HWND for accelerated rendering on windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <string> 10 #include <string>
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // Called to notify the RenderWidget that its associated native window got 196 // Called to notify the RenderWidget that its associated native window got
197 // focused. 197 // focused.
198 virtual void GotFocus(); 198 virtual void GotFocus();
199 199
200 // Tells the renderer it got/lost focus. 200 // Tells the renderer it got/lost focus.
201 void Focus(); 201 void Focus();
202 void Blur(); 202 void Blur();
203 virtual void LostCapture(); 203 virtual void LostCapture();
204 204
205 // Tells us whether the page is rendered directly via the GPU process. 205 // Tells us whether the page is rendered directly via the GPU process.
206 bool is_gpu_rendering_active() { return is_gpu_rendering_active_; } 206 bool is_accelerated_compositing_active() {
207 return is_accelerated_compositing_active_;
208 }
207 209
208 // Notifies the RenderWidgetHost that the View was destroyed. 210 // Notifies the RenderWidgetHost that the View was destroyed.
209 void ViewDestroyed(); 211 void ViewDestroyed();
210 212
211 // Indicates if the page has finished loading. 213 // Indicates if the page has finished loading.
212 void SetIsLoading(bool is_loading); 214 void SetIsLoading(bool is_loading);
213 215
214 // This tells the renderer to paint into a bitmap and return it, 216 // This tells the renderer to paint into a bitmap and return it,
215 // regardless of whether the tab is hidden or not. It resizes the 217 // regardless of whether the tab is hidden or not. It resizes the
216 // web widget to match the |page_size| and then returns the bitmap 218 // web widget to match the |page_size| and then returns the bitmap
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 void OnMsgUpdateRect(const ViewHostMsg_UpdateRect_Params& params); 479 void OnMsgUpdateRect(const ViewHostMsg_UpdateRect_Params& params);
478 void OnMsgInputEventAck(const IPC::Message& message); 480 void OnMsgInputEventAck(const IPC::Message& message);
479 virtual void OnMsgFocus(); 481 virtual void OnMsgFocus();
480 virtual void OnMsgBlur(); 482 virtual void OnMsgBlur();
481 483
482 void OnMsgSetCursor(const WebCursor& cursor); 484 void OnMsgSetCursor(const WebCursor& cursor);
483 void OnMsgImeUpdateTextInputState(WebKit::WebTextInputType type, 485 void OnMsgImeUpdateTextInputState(WebKit::WebTextInputType type,
484 const gfx::Rect& caret_rect); 486 const gfx::Rect& caret_rect);
485 void OnMsgImeCancelComposition(); 487 void OnMsgImeCancelComposition();
486 488
487 void OnMsgGpuRenderingActivated(bool activated); 489 void OnMsgDidActivateAcceleratedCompositing(bool activated);
488 490
489 #if defined(OS_MACOSX) 491 #if defined(OS_MACOSX)
490 void OnMsgGetScreenInfo(gfx::NativeViewId view, 492 void OnMsgGetScreenInfo(gfx::NativeViewId view,
491 WebKit::WebScreenInfo* results); 493 WebKit::WebScreenInfo* results);
492 void OnMsgGetWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); 494 void OnMsgGetWindowRect(gfx::NativeViewId window_id, gfx::Rect* results);
493 void OnMsgGetRootWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); 495 void OnMsgGetRootWindowRect(gfx::NativeViewId window_id, gfx::Rect* results);
494 void OnMsgSetPluginImeEnabled(bool enabled, int plugin_id); 496 void OnMsgSetPluginImeEnabled(bool enabled, int plugin_id);
495 void OnAllocateFakePluginWindowHandle(bool opaque, 497 void OnAllocateFakePluginWindowHandle(bool opaque,
496 bool root, 498 bool root,
497 gfx::PluginWindowHandle* id); 499 gfx::PluginWindowHandle* id);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 // The ID of the corresponding object in the Renderer Instance. 559 // The ID of the corresponding object in the Renderer Instance.
558 int routing_id_; 560 int routing_id_;
559 561
560 // Indicates whether a page is loading or not. 562 // Indicates whether a page is loading or not.
561 bool is_loading_; 563 bool is_loading_;
562 564
563 // Indicates whether a page is hidden or not. 565 // Indicates whether a page is hidden or not.
564 bool is_hidden_; 566 bool is_hidden_;
565 567
566 // True when a page is rendered directly via the GPU process. 568 // True when a page is rendered directly via the GPU process.
567 bool is_gpu_rendering_active_; 569 bool is_accelerated_compositing_active_;
568 570
569 // Set if we are waiting for a repaint ack for the view. 571 // Set if we are waiting for a repaint ack for the view.
570 bool repaint_ack_pending_; 572 bool repaint_ack_pending_;
571 573
572 // True when waiting for RESIZE_ACK. 574 // True when waiting for RESIZE_ACK.
573 bool resize_ack_pending_; 575 bool resize_ack_pending_;
574 576
575 // The current size of the RenderWidget. 577 // The current size of the RenderWidget.
576 gfx::Size current_size_; 578 gfx::Size current_size_;
577 579
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 // but the Char event generated by alt-2 may also activate a HTML element 680 // but the Char event generated by alt-2 may also activate a HTML element
679 // if its accesskey happens to be "2", then the user may get confused when 681 // if its accesskey happens to be "2", then the user may get confused when
680 // switching back to the original tab, because the content may already be 682 // switching back to the original tab, because the content may already be
681 // changed. 683 // changed.
682 bool suppress_next_char_events_; 684 bool suppress_next_char_events_;
683 685
684 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); 686 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost);
685 }; 687 };
686 688
687 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 689 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/gpu_process_host_ui_shim.cc ('k') | chrome/browser/renderer_host/render_widget_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698