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

Side by Side Diff: content/renderer/render_widget.h

Issue 12746009: Revert 189969 "Add RenderWidgetHost::GetSnapshotFromRenderer met..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1450/src/
Patch Set: Created 7 years, 9 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
« no previous file with comments | « content/public/browser/render_widget_host.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_RENDER_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 10
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 void OnSmoothScrollCompleted(int gesture_id); 310 void OnSmoothScrollCompleted(int gesture_id);
311 void OnSetTextDirection(WebKit::WebTextDirection direction); 311 void OnSetTextDirection(WebKit::WebTextDirection direction);
312 void OnGetFPS(); 312 void OnGetFPS();
313 void OnScreenInfoChanged(const WebKit::WebScreenInfo& screen_info); 313 void OnScreenInfoChanged(const WebKit::WebScreenInfo& screen_info);
314 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, 314 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect,
315 const gfx::Rect& window_screen_rect); 315 const gfx::Rect& window_screen_rect);
316 #if defined(OS_ANDROID) 316 #if defined(OS_ANDROID)
317 void OnImeBatchStateChanged(bool is_begin); 317 void OnImeBatchStateChanged(bool is_begin);
318 void OnShowImeIfNeeded(); 318 void OnShowImeIfNeeded();
319 #endif 319 #endif
320 void OnSnapshot(const gfx::Rect& src_subrect);
321 320
322 // Notify the compositor about a change in viewport size. This should be 321 // Notify the compositor about a change in viewport size. This should be
323 // used only with auto resize mode WebWidgets, as normal WebWidgets should 322 // used only with auto resize mode WebWidgets, as normal WebWidgets should
324 // go through OnResize. 323 // go through OnResize.
325 void AutoResizeCompositor(); 324 void AutoResizeCompositor();
326 325
327 virtual void SetDeviceScaleFactor(float device_scale_factor); 326 virtual void SetDeviceScaleFactor(float device_scale_factor);
328 327
329 // Override points to notify derived classes that a paint has happened. 328 // Override points to notify derived classes that a paint has happened.
330 // WillInitiatePaint happens when we're about to generate a new bitmap and 329 // WillInitiatePaint happens when we're about to generate a new bitmap and
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} 471 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {}
473 472
474 // Check whether the WebWidget has any touch event handlers registered 473 // Check whether the WebWidget has any touch event handlers registered
475 // at the given point. 474 // at the given point.
476 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const; 475 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const;
477 476
478 // Creates a 3D context associated with this view. 477 // Creates a 3D context associated with this view.
479 WebKit::WebGraphicsContext3D* CreateGraphicsContext3D( 478 WebKit::WebGraphicsContext3D* CreateGraphicsContext3D(
480 const WebKit::WebGraphicsContext3D::Attributes& attributes); 479 const WebKit::WebGraphicsContext3D::Attributes& attributes);
481 480
482 bool OnSnapshotHelper(const gfx::Rect& src_subrect, SkBitmap* bitmap);
483
484 // Routing ID that allows us to communicate to the parent browser process 481 // Routing ID that allows us to communicate to the parent browser process
485 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. 482 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent.
486 int32 routing_id_; 483 int32 routing_id_;
487 484
488 int32 surface_id_; 485 int32 surface_id_;
489 486
490 // We are responsible for destroying this object via its Close method. 487 // We are responsible for destroying this object via its Close method.
491 WebKit::WebWidget* webwidget_; 488 WebKit::WebWidget* webwidget_;
492 489
493 // This is lazily constructed and must not outlive webwidget_. 490 // This is lazily constructed and must not outlive webwidget_.
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 bool is_threaded_compositing_enabled_; 680 bool is_threaded_compositing_enabled_;
684 681
685 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; 682 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_;
686 683
687 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 684 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
688 }; 685 };
689 686
690 } // namespace content 687 } // namespace content
691 688
692 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 689 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_widget_host.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698