| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 #ifndef CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_CONTEXT_H_ | 4 #ifndef CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_CONTEXT_H_ |
| 5 #define CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_CONTEXT_H_ | 5 #define CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_CONTEXT_H_ |
| 6 | 6 |
| 7 #include "ui/gfx/geometry/rect.h" | 7 #include "ui/gfx/geometry/rect.h" |
| 8 #include "ui/gfx/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
| 9 | 9 |
| 10 class ExclusiveAccessManager; | 10 class ExclusiveAccessManager; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 virtual gfx::Point GetCursorPointInParent() const = 0; | 40 virtual gfx::Point GetCursorPointInParent() const = 0; |
| 41 | 41 |
| 42 // Return the current bounds (not restored bounds) of the parent window. | 42 // Return the current bounds (not restored bounds) of the parent window. |
| 43 virtual gfx::Rect GetClientAreaBoundsInScreen() const = 0; | 43 virtual gfx::Rect GetClientAreaBoundsInScreen() const = 0; |
| 44 | 44 |
| 45 // Returns true if immersive mode is enabled. | 45 // Returns true if immersive mode is enabled. |
| 46 virtual bool IsImmersiveModeEnabled() = 0; | 46 virtual bool IsImmersiveModeEnabled() = 0; |
| 47 | 47 |
| 48 // Returns the bounds of the top level View in screen coordinate system. | 48 // Returns the bounds of the top level View in screen coordinate system. |
| 49 virtual gfx::Rect GetTopContainerBoundsInScreen() = 0; | 49 virtual gfx::Rect GetTopContainerBoundsInScreen() = 0; |
| 50 |
| 51 // Destroy any exclusive access bubble. This allows the bubble to ask its |
| 52 // owner to clean up when the bubble observes its native widget being |
| 53 // destroyed before the owner requested it. |
| 54 virtual void DestroyAnyExclusiveAccessBubble() = 0; |
| 50 }; | 55 }; |
| 51 | 56 |
| 52 #endif // CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_CONTEXT_H_ | 57 #endif // CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_CONTEXT_H_ |
| OLD | NEW |