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

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

Issue 637083002: Sets the default background color of inline signin and user manager to grey (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_base.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 "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"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "third_party/skia/include/core/SkBitmap.h" 12 #include "third_party/skia/include/core/SkBitmap.h"
13 #include "third_party/skia/include/core/SkColor.h"
13 #include "third_party/skia/include/core/SkRegion.h" 14 #include "third_party/skia/include/core/SkRegion.h"
14 #include "third_party/WebKit/public/web/WebInputEvent.h" 15 #include "third_party/WebKit/public/web/WebInputEvent.h"
15 #include "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
16 17
17 class GURL; 18 class GURL;
18 19
19 namespace gfx { 20 namespace gfx {
20 class Rect; 21 class Rect;
21 class Size; 22 class Size;
22 } 23 }
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 virtual void SetShowingContextMenu(bool showing) = 0; 103 virtual void SetShowingContextMenu(bool showing) = 0;
103 104
104 // Returns the currently selected text. 105 // Returns the currently selected text.
105 virtual base::string16 GetSelectedText() const = 0; 106 virtual base::string16 GetSelectedText() const = 0;
106 107
107 // Subclasses should override this method to do what is appropriate to set 108 // Subclasses should override this method to do what is appropriate to set
108 // the background to be transparent or opaque. 109 // the background to be transparent or opaque.
109 virtual void SetBackgroundOpaque(bool opaque) = 0; 110 virtual void SetBackgroundOpaque(bool opaque) = 0;
110 virtual bool GetBackgroundOpaque() = 0; 111 virtual bool GetBackgroundOpaque() = 0;
111 112
113 // Subclasses should override this method to set the initial background color.
114 virtual void SetBackgroundColor(SkColor color) = 0;
sky 2014/10/07 22:03:59 Can SetBackgroundOpaque be removed if you add this
guohui 2014/10/08 18:11:51 Theoretically yes, you could replace SetBackground
guohui 2014/10/08 18:22:33 eh i forgot SkColor has an alpha component, so it
115
112 // Return value indicates whether the mouse is locked successfully or not. 116 // Return value indicates whether the mouse is locked successfully or not.
113 virtual bool LockMouse() = 0; 117 virtual bool LockMouse() = 0;
114 virtual void UnlockMouse() = 0; 118 virtual void UnlockMouse() = 0;
115 // Returns true if the mouse pointer is currently locked. 119 // Returns true if the mouse pointer is currently locked.
116 virtual bool IsMouseLocked() = 0; 120 virtual bool IsMouseLocked() = 0;
117 121
118 // Retrives the size of the viewport for the visible region. May be smaller 122 // Retrives the size of the viewport for the visible region. May be smaller
119 // than the view size if a portion of the view is obstructed (e.g. by a 123 // than the view size if a portion of the view is obstructed (e.g. by a
120 // virtual keyboard). 124 // virtual keyboard).
121 virtual gfx::Size GetVisibleViewportSize() const = 0; 125 virtual gfx::Size GetVisibleViewportSize() const = 0;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // Returns |true| if text is currently being spoken by Mac OS X. 169 // Returns |true| if text is currently being spoken by Mac OS X.
166 virtual bool IsSpeaking() const = 0; 170 virtual bool IsSpeaking() const = 0;
167 // Stops speaking, if it is currently in progress. 171 // Stops speaking, if it is currently in progress.
168 virtual void StopSpeaking() = 0; 172 virtual void StopSpeaking() = 0;
169 #endif // defined(OS_MACOSX) 173 #endif // defined(OS_MACOSX)
170 }; 174 };
171 175
172 } // namespace content 176 } // namespace content
173 177
174 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 178 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_base.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698