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

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

Issue 975293004: Start caching the theme color in web_contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 virtual base::string16 GetSelectedText() const = 0; 114 virtual base::string16 GetSelectedText() const = 0;
115 115
116 // Subclasses should override this method to set the background color. |color| 116 // Subclasses should override this method to set the background color. |color|
117 // could be transparent or opaque. 117 // could be transparent or opaque.
118 virtual void SetBackgroundColor(SkColor color) = 0; 118 virtual void SetBackgroundColor(SkColor color) = 0;
119 // Convenience method to fill the background layer with the default color by 119 // Convenience method to fill the background layer with the default color by
120 // calling |SetBackgroundColor|. 120 // calling |SetBackgroundColor|.
121 virtual void SetBackgroundColorToDefault() = 0; 121 virtual void SetBackgroundColorToDefault() = 0;
122 virtual bool GetBackgroundOpaque() = 0; 122 virtual bool GetBackgroundOpaque() = 0;
123 123
124 // Subclasses should override this method to set the theme color.
125 virtual void SetThemeColor(SkColor color) = 0;
126
124 // Return value indicates whether the mouse is locked successfully or not. 127 // Return value indicates whether the mouse is locked successfully or not.
125 virtual bool LockMouse() = 0; 128 virtual bool LockMouse() = 0;
126 virtual void UnlockMouse() = 0; 129 virtual void UnlockMouse() = 0;
127 // Returns true if the mouse pointer is currently locked. 130 // Returns true if the mouse pointer is currently locked.
128 virtual bool IsMouseLocked() = 0; 131 virtual bool IsMouseLocked() = 0;
129 132
130 // Retrives the size of the viewport for the visible region. May be smaller 133 // Retrives the size of the viewport for the visible region. May be smaller
131 // than the view size if a portion of the view is obstructed (e.g. by a 134 // than the view size if a portion of the view is obstructed (e.g. by a
132 // virtual keyboard). 135 // virtual keyboard).
133 virtual gfx::Size GetVisibleViewportSize() const = 0; 136 virtual gfx::Size GetVisibleViewportSize() const = 0;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // Returns |true| if text is currently being spoken by Mac OS X. 174 // Returns |true| if text is currently being spoken by Mac OS X.
172 virtual bool IsSpeaking() const = 0; 175 virtual bool IsSpeaking() const = 0;
173 // Stops speaking, if it is currently in progress. 176 // Stops speaking, if it is currently in progress.
174 virtual void StopSpeaking() = 0; 177 virtual void StopSpeaking() = 0;
175 #endif // defined(OS_MACOSX) 178 #endif // defined(OS_MACOSX)
176 }; 179 };
177 180
178 } // namespace content 181 } // namespace content
179 182
180 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 183 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698