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

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

Issue 2152073002: Removed const from RenderWidgetHostView::GetSelectedText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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_mus.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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // Retrieve the bounds of the View, in screen coordinates. 117 // Retrieve the bounds of the View, in screen coordinates.
118 virtual gfx::Rect GetViewBounds() const = 0; 118 virtual gfx::Rect GetViewBounds() const = 0;
119 119
120 // Returns true if the View's context menu is showing. 120 // Returns true if the View's context menu is showing.
121 virtual bool IsShowingContextMenu() const = 0; 121 virtual bool IsShowingContextMenu() const = 0;
122 122
123 // Tells the View whether the context menu is showing. 123 // Tells the View whether the context menu is showing.
124 virtual void SetShowingContextMenu(bool showing) = 0; 124 virtual void SetShowingContextMenu(bool showing) = 0;
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() = 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 bool GetBackgroundOpaque() = 0; 135 virtual bool GetBackgroundOpaque() = 0;
136 136
137 // Return value indicates whether the mouse is locked successfully or not. 137 // Return value indicates whether the mouse is locked successfully or not.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // 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.
186 virtual bool IsSpeaking() const = 0; 186 virtual bool IsSpeaking() const = 0;
187 // Stops speaking, if it is currently in progress. 187 // Stops speaking, if it is currently in progress.
188 virtual void StopSpeaking() = 0; 188 virtual void StopSpeaking() = 0;
189 #endif // defined(OS_MACOSX) 189 #endif // defined(OS_MACOSX)
190 }; 190 };
191 191
192 } // namespace content 192 } // namespace content
193 193
194 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 194 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mus.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698