Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 86 virtual bool IsSurfaceAvailableForCopy() const = 0; | 86 virtual bool IsSurfaceAvailableForCopy() const = 0; |
| 87 | 87 |
| 88 // Shows/hides the view. These must always be called together in pairs. | 88 // Shows/hides the view. These must always be called together in pairs. |
| 89 // It is not legal to call Hide() multiple times in a row. | 89 // It is not legal to call Hide() multiple times in a row. |
| 90 virtual void Show() = 0; | 90 virtual void Show() = 0; |
| 91 virtual void Hide() = 0; | 91 virtual void Hide() = 0; |
| 92 | 92 |
| 93 // Whether the view is showing. | 93 // Whether the view is showing. |
| 94 virtual bool IsShowing() = 0; | 94 virtual bool IsShowing() = 0; |
| 95 | 95 |
| 96 // Indicates if the view is currently occluded and the view may be suspended. | |
|
Avi (use Gerrit)
2015/01/16 20:15:13
You might want to give an "e.g." for occlusion her
ccameron
2015/01/16 21:43:40
Done.
| |
| 97 // If Show() is called on a view then its state is re-set to being | |
| 98 // un-occluded. These calls do not necessarily made in pairs. | |
|
Avi (use Gerrit)
2015/01/16 20:15:13
"do not necessarily made" is weird grammar; clean
ccameron
2015/01/16 21:43:40
Fixed. Also expanded on the points of being re-set
| |
| 99 virtual void WasUnOccluded() = 0; | |
| 100 virtual void WasOccluded() = 0; | |
| 101 | |
| 96 // Retrieve the bounds of the View, in screen coordinates. | 102 // Retrieve the bounds of the View, in screen coordinates. |
| 97 virtual gfx::Rect GetViewBounds() const = 0; | 103 virtual gfx::Rect GetViewBounds() const = 0; |
| 98 | 104 |
| 99 // Returns true if the View's context menu is showing. | 105 // Returns true if the View's context menu is showing. |
| 100 virtual bool IsShowingContextMenu() const = 0; | 106 virtual bool IsShowingContextMenu() const = 0; |
| 101 | 107 |
| 102 // Tells the View whether the context menu is showing. | 108 // Tells the View whether the context menu is showing. |
| 103 virtual void SetShowingContextMenu(bool showing) = 0; | 109 virtual void SetShowingContextMenu(bool showing) = 0; |
| 104 | 110 |
| 105 // Returns the currently selected text. | 111 // Returns the currently selected text. |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 163 // 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. |
| 164 virtual bool IsSpeaking() const = 0; | 170 virtual bool IsSpeaking() const = 0; |
| 165 // Stops speaking, if it is currently in progress. | 171 // Stops speaking, if it is currently in progress. |
| 166 virtual void StopSpeaking() = 0; | 172 virtual void StopSpeaking() = 0; |
| 167 #endif // defined(OS_MACOSX) | 173 #endif // defined(OS_MACOSX) |
| 168 }; | 174 }; |
| 169 | 175 |
| 170 } // namespace content | 176 } // namespace content |
| 171 | 177 |
| 172 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 178 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
| OLD | NEW |