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

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

Issue 1731373002: Allow to have a transparent UA dependent background. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Decouple background color and transparency in RenderWidgetHostView 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
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/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 // Returns the currently selected text. 126 // Returns the currently selected text.
127 virtual base::string16 GetSelectedText() const = 0; 127 virtual base::string16 GetSelectedText() const = 0;
128 128
129 // Subclasses should override this method to set the background color. |color| 129 // Subclasses should override this method to set the background color. |color|
130 // could be transparent or opaque. 130 // could be transparent or opaque.
131 virtual void SetBackgroundColor(SkColor color) = 0; 131 virtual void SetBackgroundColor(SkColor color) = 0;
132 // Convenience method to fill the background layer with the default color by 132 // Convenience method to fill the background layer with the default color by
133 // calling |SetBackgroundColor|. 133 // calling |SetBackgroundColor|.
134 virtual void SetBackgroundColorToDefault() = 0; 134 virtual void SetBackgroundColorToDefault() = 0;
135 virtual void SetBackgroundOpaque(bool opaque) = 0;
135 virtual bool GetBackgroundOpaque() = 0; 136 virtual bool GetBackgroundOpaque() = 0;
136 137
137 // Return value indicates whether the mouse is locked successfully or not. 138 // Return value indicates whether the mouse is locked successfully or not.
138 virtual bool LockMouse() = 0; 139 virtual bool LockMouse() = 0;
139 virtual void UnlockMouse() = 0; 140 virtual void UnlockMouse() = 0;
140 // Returns true if the mouse pointer is currently locked. 141 // Returns true if the mouse pointer is currently locked.
141 virtual bool IsMouseLocked() = 0; 142 virtual bool IsMouseLocked() = 0;
142 143
143 // Retrives the size of the viewport for the visible region. May be smaller 144 // Retrives the size of the viewport for the visible region. May be smaller
144 // than the view size if a portion of the view is obstructed (e.g. by a 145 // than the view size if a portion of the view is obstructed (e.g. by a
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // Returns |true| if text is currently being spoken by Mac OS X. 185 // Returns |true| if text is currently being spoken by Mac OS X.
185 virtual bool IsSpeaking() const = 0; 186 virtual bool IsSpeaking() const = 0;
186 // Stops speaking, if it is currently in progress. 187 // Stops speaking, if it is currently in progress.
187 virtual void StopSpeaking() = 0; 188 virtual void StopSpeaking() = 0;
188 #endif // defined(OS_MACOSX) 189 #endif // defined(OS_MACOSX)
189 }; 190 };
190 191
191 } // namespace content 192 } // namespace content
192 193
193 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 194 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698