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

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

Issue 1771043002: Separate RenderView from RenderWidget, part 4: Painting calls in the delegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « content/renderer/render_view_impl.cc ('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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 bool SetDeviceColorProfile(const std::vector<char>& color_profile); 492 bool SetDeviceColorProfile(const std::vector<char>& color_profile);
493 493
494 virtual void OnOrientationChange(); 494 virtual void OnOrientationChange();
495 495
496 // Override points to notify derived classes that a paint has happened. 496 // Override points to notify derived classes that a paint has happened.
497 // DidInitiatePaint happens when that has completed, and subsequent rendering 497 // DidInitiatePaint happens when that has completed, and subsequent rendering
498 // won't affect the painted content. DidFlushPaint happens once we've received 498 // won't affect the painted content. DidFlushPaint happens once we've received
499 // the ACK that the screen has been updated. For a given paint operation, 499 // the ACK that the screen has been updated. For a given paint operation,
500 // these overrides will always be called in the order DidInitiatePaint, 500 // these overrides will always be called in the order DidInitiatePaint,
501 // DidFlushPaint. 501 // DidFlushPaint.
502 virtual void DidInitiatePaint() {} 502 virtual void DidInitiatePaint();
503 virtual void DidFlushPaint() {} 503 virtual void DidFlushPaint();
504 504
505 virtual GURL GetURLForGraphicsContext3D(); 505 virtual GURL GetURLForGraphicsContext3D();
506 506
507 // Gets the scroll offset of this widget, if this widget has a notion of 507 // Gets the scroll offset of this widget, if this widget has a notion of
508 // scroll offset. 508 // scroll offset.
509 virtual gfx::Vector2d GetScrollOffset(); 509 virtual gfx::Vector2d GetScrollOffset();
510 510
511 // Sets the "hidden" state of this widget. All accesses to is_hidden_ should 511 // Sets the "hidden" state of this widget. All accesses to is_hidden_ should
512 // use this method so that we can properly inform the RenderThread of our 512 // use this method so that we can properly inform the RenderThread of our
513 // state. 513 // state.
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 private: 783 private:
784 // When emulated, this returns original device scale factor. 784 // When emulated, this returns original device scale factor.
785 float GetOriginalDeviceScaleFactor() const; 785 float GetOriginalDeviceScaleFactor() const;
786 786
787 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 787 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
788 }; 788 };
789 789
790 } // namespace content 790 } // namespace content
791 791
792 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 792 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698