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

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

Issue 10227004: RenderWidget's scheduleComposite should return a bool. (true iff a prompt composite will come). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 7 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 | « no previous file | content/renderer/render_widget.cc » ('j') | content/renderer/render_widget.cc » ('J')
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 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <vector> 10 #include <vector>
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // WebKit::WebWidgetClient 115 // WebKit::WebWidgetClient
116 virtual void willBeginCompositorFrame(); 116 virtual void willBeginCompositorFrame();
117 virtual void didInvalidateRect(const WebKit::WebRect&); 117 virtual void didInvalidateRect(const WebKit::WebRect&);
118 virtual void didScrollRect(int dx, int dy, const WebKit::WebRect& clipRect); 118 virtual void didScrollRect(int dx, int dy, const WebKit::WebRect& clipRect);
119 virtual void didAutoResize(const WebKit::WebSize& new_size); 119 virtual void didAutoResize(const WebKit::WebSize& new_size);
120 virtual void didActivateCompositor(int input_handler_identifier); 120 virtual void didActivateCompositor(int input_handler_identifier);
121 virtual void didDeactivateCompositor(); 121 virtual void didDeactivateCompositor();
122 virtual void didBecomeReadyForAdditionalInput(); 122 virtual void didBecomeReadyForAdditionalInput();
123 virtual void didCommitAndDrawCompositorFrame(); 123 virtual void didCommitAndDrawCompositorFrame();
124 virtual void didCompleteSwapBuffers(); 124 virtual void didCompleteSwapBuffers();
125 #if defined(WEBWIDGETCLIENT_SCHEDULECOMPOSITE_RETURNS_BOOL)
126 virtual bool scheduleComposite();
127 #else
125 virtual void scheduleComposite(); 128 virtual void scheduleComposite();
129 #endif
126 virtual void scheduleAnimation(); 130 virtual void scheduleAnimation();
127 virtual void didFocus(); 131 virtual void didFocus();
128 virtual void didBlur(); 132 virtual void didBlur();
129 virtual void didChangeCursor(const WebKit::WebCursorInfo&); 133 virtual void didChangeCursor(const WebKit::WebCursorInfo&);
130 virtual void closeWidgetSoon(); 134 virtual void closeWidgetSoon();
131 virtual void show(WebKit::WebNavigationPolicy); 135 virtual void show(WebKit::WebNavigationPolicy);
132 virtual void runModal() {} 136 virtual void runModal() {}
133 virtual WebKit::WebRect windowRect(); 137 virtual WebKit::WebRect windowRect();
134 virtual void setToolTipText(const WebKit::WebString& text, 138 virtual void setToolTipText(const WebKit::WebString& text,
135 WebKit::WebTextDirection hint); 139 WebKit::WebTextDirection hint);
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 // Set to true if we should invert all pixels. 522 // Set to true if we should invert all pixels.
519 bool invert_; 523 bool invert_;
520 524
521 // The Skia paint object for inverting. 525 // The Skia paint object for inverting.
522 scoped_ptr<SkPaint> invert_paint_; 526 scoped_ptr<SkPaint> invert_paint_;
523 527
524 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 528 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
525 }; 529 };
526 530
527 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 531 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_widget.cc » ('j') | content/renderer/render_widget.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698