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

Side by Side Diff: content/public/browser/render_widget_host_view.h

Issue 2702153003: [content] Fix background color update handling in RWHVAura. (Closed)
Patch Set: rename, cached color, comment update. Created 3 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
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_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // Returns true if the View's context menu is showing. 121 // Returns true if the View's context menu is showing.
122 virtual bool IsShowingContextMenu() const = 0; 122 virtual bool IsShowingContextMenu() const = 0;
123 123
124 // Tells the View whether the context menu is showing. 124 // Tells the View whether the context menu is showing.
125 virtual void SetShowingContextMenu(bool showing) = 0; 125 virtual void SetShowingContextMenu(bool showing) = 0;
126 126
127 // Returns the currently selected text. 127 // Returns the currently selected text.
128 virtual base::string16 GetSelectedText() = 0; 128 virtual base::string16 GetSelectedText() = 0;
129 129
130 // Subclasses should override this method to set the background color. |color| 130 // Subclasses should override this method to set the background color. |color|
131 // could be transparent or opaque. 131 // has to be either SK_ColorTRANSPARENT or opaque. If set to
132 // SK_ColorTRANSPARENT, the renderer's background color will be overridden to
133 // be fully transparent.
132 virtual void SetBackgroundColor(SkColor color) = 0; 134 virtual void SetBackgroundColor(SkColor color) = 0;
133 // Convenience method to fill the background layer with the default color by 135 // Convenience method to fill the background layer with the default color by
134 // calling |SetBackgroundColor|. 136 // calling |SetBackgroundColor|.
135 virtual SkColor background_color() = 0; 137 virtual SkColor background_color() = 0;
136 virtual void SetBackgroundColorToDefault() = 0; 138 virtual void SetBackgroundColorToDefault() = 0;
137 virtual bool GetBackgroundOpaque() = 0; 139 virtual bool GetBackgroundOpaque() = 0;
138 140
139 // Return value indicates whether the mouse is locked successfully or not. 141 // Return value indicates whether the mouse is locked successfully or not.
140 virtual bool LockMouse() = 0; 142 virtual bool LockMouse() = 0;
141 virtual void UnlockMouse() = 0; 143 virtual void UnlockMouse() = 0;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // Returns |true| if text is currently being spoken by Mac OS X. 194 // Returns |true| if text is currently being spoken by Mac OS X.
193 virtual bool IsSpeaking() const = 0; 195 virtual bool IsSpeaking() const = 0;
194 // Stops speaking, if it is currently in progress. 196 // Stops speaking, if it is currently in progress.
195 virtual void StopSpeaking() = 0; 197 virtual void StopSpeaking() = 0;
196 #endif // defined(OS_MACOSX) 198 #endif // defined(OS_MACOSX)
197 }; 199 };
198 200
199 } // namespace content 201 } // namespace content
200 202
201 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 203 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698