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

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, 1 month 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 void OnMsgUpdateRect(const ViewHostMsg_UpdateRect_Params& params); 475 void OnMsgUpdateRect(const ViewHostMsg_UpdateRect_Params& params);
474 void OnMsgInputEventAck(const IPC::Message& message); 476 void OnMsgInputEventAck(const IPC::Message& message);
475 virtual void OnMsgFocus(); 477 virtual void OnMsgFocus();
476 virtual void OnMsgBlur(); 478 virtual void OnMsgBlur();
477 479
478 void OnMsgSetCursor(const WebCursor& cursor); 480 void OnMsgSetCursor(const WebCursor& cursor);
479 void OnMsgImeUpdateTextInputState(WebKit::WebTextInputType type, 481 void OnMsgImeUpdateTextInputState(WebKit::WebTextInputType type,
480 const gfx::Rect& caret_rect); 482 const gfx::Rect& caret_rect);
481 void OnMsgImeCancelComposition(); 483 void OnMsgImeCancelComposition();
482 484
483 void OnMsgGpuRenderingActivated(bool activated); 485 void OnMsgDidActivateAcceleratedCompositing(bool activated);
484 486
485 #if defined(OS_MACOSX) 487 #if defined(OS_MACOSX)
486 void OnMsgGetScreenInfo(gfx::NativeViewId view, 488 void OnMsgGetScreenInfo(gfx::NativeViewId view,
487 WebKit::WebScreenInfo* results); 489 WebKit::WebScreenInfo* results);
488 void OnMsgGetWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); 490 void OnMsgGetWindowRect(gfx::NativeViewId window_id, gfx::Rect* results);
489 void OnMsgGetRootWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); 491 void OnMsgGetRootWindowRect(gfx::NativeViewId window_id, gfx::Rect* results);
490 void OnMsgSetPluginImeEnabled(bool enabled, int plugin_id); 492 void OnMsgSetPluginImeEnabled(bool enabled, int plugin_id);
491 void OnAllocateFakePluginWindowHandle(bool opaque, 493 void OnAllocateFakePluginWindowHandle(bool opaque,
492 bool root, 494 bool root,
493 gfx::PluginWindowHandle* id); 495 gfx::PluginWindowHandle* id);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 // The ID of the corresponding object in the Renderer Instance. 555 // The ID of the corresponding object in the Renderer Instance.
554 int routing_id_; 556 int routing_id_;
555 557
556 // Indicates whether a page is loading or not. 558 // Indicates whether a page is loading or not.
557 bool is_loading_; 559 bool is_loading_;
558 560
559 // Indicates whether a page is hidden or not. 561 // Indicates whether a page is hidden or not.
560 bool is_hidden_; 562 bool is_hidden_;
561 563
562 // True when a page is rendered directly via the GPU process. 564 // True when a page is rendered directly via the GPU process.
563 bool is_gpu_rendering_active_; 565 bool is_accelerated_compositing_active_;
564 566
565 // Set if we are waiting for a repaint ack for the view. 567 // Set if we are waiting for a repaint ack for the view.
566 bool repaint_ack_pending_; 568 bool repaint_ack_pending_;
567 569
568 // True when waiting for RESIZE_ACK. 570 // True when waiting for RESIZE_ACK.
569 bool resize_ack_pending_; 571 bool resize_ack_pending_;
570 572
571 // The current size of the RenderWidget. 573 // The current size of the RenderWidget.
572 gfx::Size current_size_; 574 gfx::Size current_size_;
573 575
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 // but the Char event generated by alt-2 may also activate a HTML element 676 // but the Char event generated by alt-2 may also activate a HTML element
675 // if its accesskey happens to be "2", then the user may get confused when 677 // if its accesskey happens to be "2", then the user may get confused when
676 // switching back to the original tab, because the content may already be 678 // switching back to the original tab, because the content may already be
677 // changed. 679 // changed.
678 bool suppress_next_char_events_; 680 bool suppress_next_char_events_;
679 681
680 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); 682 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost);
681 }; 683 };
682 684
683 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 685 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698