| 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 // Whether this view is managed by mus. |
| 97 virtual bool IsMusView() const = 0; |
| 98 |
| 96 // Indicates if the view is currently occluded (e.g, not visible because it's | 99 // Indicates if the view is currently occluded (e.g, not visible because it's |
| 97 // covered up by other windows), and as a result the view's renderer may be | 100 // covered up by other windows), and as a result the view's renderer may be |
| 98 // suspended. If Show() is called on a view then its state should be re-set to | 101 // suspended. If Show() is called on a view then its state should be re-set to |
| 99 // being un-occluded (an explicit WasUnOccluded call will not be made for | 102 // being un-occluded (an explicit WasUnOccluded call will not be made for |
| 100 // that). These calls are not necessarily made in pairs. | 103 // that). These calls are not necessarily made in pairs. |
| 101 virtual void WasUnOccluded() = 0; | 104 virtual void WasUnOccluded() = 0; |
| 102 virtual void WasOccluded() = 0; | 105 virtual void WasOccluded() = 0; |
| 103 | 106 |
| 104 // Retrieve the bounds of the View, in screen coordinates. | 107 // Retrieve the bounds of the View, in screen coordinates. |
| 105 virtual gfx::Rect GetViewBounds() const = 0; | 108 virtual gfx::Rect GetViewBounds() const = 0; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_ |
| OLD | NEW |