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

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

Issue 259523008: Remove RenderWidgetHost::GetSnapshotFromRenderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: getsnapshotfromrenderer: rm Created 6 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
« 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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 // Whenever an IME event that needs an acknowledgement is sent to the browser, 375 // Whenever an IME event that needs an acknowledgement is sent to the browser,
376 // the number of outstanding IME events that needs acknowledgement should be 376 // the number of outstanding IME events that needs acknowledgement should be
377 // incremented. All IME events will be dropped until we receive an ack from 377 // incremented. All IME events will be dropped until we receive an ack from
378 // the browser. 378 // the browser.
379 void IncrementOutstandingImeEventAcks(); 379 void IncrementOutstandingImeEventAcks();
380 380
381 // Called by the browser process for every required IME acknowledgement. 381 // Called by the browser process for every required IME acknowledgement.
382 void OnImeEventAck(); 382 void OnImeEventAck();
383 #endif 383 #endif
384 384
385 void OnSnapshot(const gfx::Rect& src_subrect);
386
387 // Notify the compositor about a change in viewport size. This should be 385 // Notify the compositor about a change in viewport size. This should be
388 // used only with auto resize mode WebWidgets, as normal WebWidgets should 386 // used only with auto resize mode WebWidgets, as normal WebWidgets should
389 // go through OnResize. 387 // go through OnResize.
390 void AutoResizeCompositor(); 388 void AutoResizeCompositor();
391 389
392 virtual void SetDeviceScaleFactor(float device_scale_factor); 390 virtual void SetDeviceScaleFactor(float device_scale_factor);
393 391
394 // Override points to notify derived classes that a paint has happened. 392 // Override points to notify derived classes that a paint has happened.
395 // DidInitiatePaint happens when that has completed, and subsequent rendering 393 // DidInitiatePaint happens when that has completed, and subsequent rendering
396 // won't affect the painted content. DidFlushPaint happens once we've received 394 // won't affect the painted content. DidFlushPaint happens once we've received
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 501
504 #if defined(OS_ANDROID) 502 #if defined(OS_ANDROID)
505 // Checks if the selection root bounds have changed. If they have changed, the 503 // Checks if the selection root bounds have changed. If they have changed, the
506 // new value will be sent to the browser process. 504 // new value will be sent to the browser process.
507 virtual void UpdateSelectionRootBounds(); 505 virtual void UpdateSelectionRootBounds();
508 #endif 506 #endif
509 507
510 // Creates a 3D context associated with this view. 508 // Creates a 3D context associated with this view.
511 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateGraphicsContext3D(); 509 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateGraphicsContext3D();
512 510
513 bool OnSnapshotHelper(const gfx::Rect& src_subrect, SkBitmap* bitmap);
514
515 // Routing ID that allows us to communicate to the parent browser process 511 // Routing ID that allows us to communicate to the parent browser process
516 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. 512 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent.
517 int32 routing_id_; 513 int32 routing_id_;
518 514
519 int32 surface_id_; 515 int32 surface_id_;
520 516
521 // We are responsible for destroying this object via its Close method. 517 // We are responsible for destroying this object via its Close method.
522 // May be NULL when the window is closing. 518 // May be NULL when the window is closing.
523 blink::WebWidget* webwidget_; 519 blink::WebWidget* webwidget_;
524 520
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 723
728 ui::MenuSourceType context_menu_source_type_; 724 ui::MenuSourceType context_menu_source_type_;
729 gfx::Point touch_editing_context_menu_location_; 725 gfx::Point touch_editing_context_menu_location_;
730 726
731 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 727 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
732 }; 728 };
733 729
734 } // namespace content 730 } // namespace content
735 731
736 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 732 #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