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

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

Issue 2466413009: Propagate view background color when changing visible web contents. (Closed)
Patch Set: none Created 4 years, 1 month 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/browser/web_contents/web_contents_impl.cc ('k') | no next file » | 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_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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 virtual void SetShowingContextMenu(bool showing) = 0; 122 virtual void SetShowingContextMenu(bool showing) = 0;
123 123
124 // Returns the currently selected text. 124 // Returns the currently selected text.
125 virtual base::string16 GetSelectedText() = 0; 125 virtual base::string16 GetSelectedText() = 0;
126 126
127 // Subclasses should override this method to set the background color. |color| 127 // Subclasses should override this method to set the background color. |color|
128 // could be transparent or opaque. 128 // could be transparent or opaque.
129 virtual void SetBackgroundColor(SkColor color) = 0; 129 virtual void SetBackgroundColor(SkColor color) = 0;
130 // Convenience method to fill the background layer with the default color by 130 // Convenience method to fill the background layer with the default color by
131 // calling |SetBackgroundColor|. 131 // calling |SetBackgroundColor|.
132 virtual SkColor background_color() = 0;
132 virtual void SetBackgroundColorToDefault() = 0; 133 virtual void SetBackgroundColorToDefault() = 0;
133 virtual bool GetBackgroundOpaque() = 0; 134 virtual bool GetBackgroundOpaque() = 0;
134 135
135 // Return value indicates whether the mouse is locked successfully or not. 136 // Return value indicates whether the mouse is locked successfully or not.
136 virtual bool LockMouse() = 0; 137 virtual bool LockMouse() = 0;
137 virtual void UnlockMouse() = 0; 138 virtual void UnlockMouse() = 0;
138 // Returns true if the mouse pointer is currently locked. 139 // Returns true if the mouse pointer is currently locked.
139 virtual bool IsMouseLocked() = 0; 140 virtual bool IsMouseLocked() = 0;
140 141
141 // Retrives the size of the viewport for the visible region. May be smaller 142 // Retrives the size of the viewport for the visible region. May be smaller
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // Returns |true| if text is currently being spoken by Mac OS X. 189 // Returns |true| if text is currently being spoken by Mac OS X.
189 virtual bool IsSpeaking() const = 0; 190 virtual bool IsSpeaking() const = 0;
190 // Stops speaking, if it is currently in progress. 191 // Stops speaking, if it is currently in progress.
191 virtual void StopSpeaking() = 0; 192 virtual void StopSpeaking() = 0;
192 #endif // defined(OS_MACOSX) 193 #endif // defined(OS_MACOSX)
193 }; 194 };
194 195
195 } // namespace content 196 } // namespace content
196 197
197 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 198 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698