| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "chrome/browser/ui/views/frame/browser_view.h" | 5 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 2672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2683 if (statusBubble) | 2683 if (statusBubble) |
| 2684 statusBubble->Hide(); | 2684 statusBubble->Hide(); |
| 2685 } | 2685 } |
| 2686 | 2686 |
| 2687 /////////////////////////////////////////////////////////////////////////////// | 2687 /////////////////////////////////////////////////////////////////////////////// |
| 2688 // BrowserView, ExclusiveAccessBubbleViewsContext overrides | 2688 // BrowserView, ExclusiveAccessBubbleViewsContext overrides |
| 2689 ExclusiveAccessManager* BrowserView::GetExclusiveAccessManager() { | 2689 ExclusiveAccessManager* BrowserView::GetExclusiveAccessManager() { |
| 2690 return browser_->exclusive_access_manager(); | 2690 return browser_->exclusive_access_manager(); |
| 2691 } | 2691 } |
| 2692 | 2692 |
| 2693 |
| 2694 gfx::NativeView BrowserView::GetParentView() const { |
| 2695 return GetWidget()->GetNativeView(); |
| 2696 } |
| 2697 |
| 2698 gfx::Point BrowserView::GetCursorPointInParent() const { |
| 2699 gfx::Point cursor_pos = gfx::Screen::GetScreen()->GetCursorScreenPoint(); |
| 2700 views::View::ConvertPointFromScreen(GetWidget()->GetRootView(), &cursor_pos); |
| 2701 return cursor_pos; |
| 2702 } |
| 2703 |
| 2704 gfx::Rect BrowserView::GetClientAreaBoundsInScreen() const { |
| 2705 return GetWidget()->GetClientAreaBoundsInScreen(); |
| 2706 } |
| 2707 |
| 2693 bool BrowserView::IsImmersiveModeEnabled() { | 2708 bool BrowserView::IsImmersiveModeEnabled() { |
| 2694 return immersive_mode_controller()->IsEnabled(); | 2709 return immersive_mode_controller()->IsEnabled(); |
| 2695 } | 2710 } |
| 2696 | 2711 |
| 2697 views::Widget* BrowserView::GetBubbleAssociatedWidget() { | 2712 views::Widget* BrowserView::GetBubbleAssociatedWidget() { |
| 2698 return GetWidget(); | 2713 return GetWidget(); |
| 2699 } | 2714 } |
| 2700 | 2715 |
| 2701 gfx::Rect BrowserView::GetTopContainerBoundsInScreen() { | 2716 gfx::Rect BrowserView::GetTopContainerBoundsInScreen() { |
| 2702 return top_container_->GetBoundsInScreen(); | 2717 return top_container_->GetBoundsInScreen(); |
| 2703 } | 2718 } |
| OLD | NEW |