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: chrome/browser/ui/views/exclusive_access_bubble_views.h

Issue 1579813002: PoC: Using the toolkit-views fullscreen access bubble on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refine Created 4 years, 11 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
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 CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // |bubble_type_|. 55 // |bubble_type_|.
56 void UpdateMouseWatcher(); 56 void UpdateMouseWatcher();
57 57
58 // Updates any state which depends on whether the user is in immersive 58 // Updates any state which depends on whether the user is in immersive
59 // fullscreen. 59 // fullscreen.
60 void UpdateForImmersiveState(); 60 void UpdateForImmersiveState();
61 61
62 // Updates |popup|'s bounds given |animation_| and |animated_attribute_|. 62 // Updates |popup|'s bounds given |animation_| and |animated_attribute_|.
63 void UpdateBounds(); 63 void UpdateBounds();
64 64
65 // Returns the root view containing |browser_view_|.
66 views::View* GetBrowserRootView() const;
67
68 // ExclusiveAccessBubble overrides: 65 // ExclusiveAccessBubble overrides:
69 void AnimationProgressed(const gfx::Animation* animation) override; 66 void AnimationProgressed(const gfx::Animation* animation) override;
70 void AnimationEnded(const gfx::Animation* animation) override; 67 void AnimationEnded(const gfx::Animation* animation) override;
71 gfx::Rect GetPopupRect(bool ignore_animation_state) const override; 68 gfx::Rect GetPopupRect(bool ignore_animation_state) const override;
72 gfx::Point GetCursorScreenPoint() override; 69 gfx::Point GetCursorScreenPoint() override;
73 bool WindowContainsPoint(gfx::Point pos) override; 70 bool WindowContainsPoint(gfx::Point pos) override;
74 bool IsWindowActive() override; 71 bool IsWindowActive() override;
75 void Hide() override; 72 void Hide() override;
76 void Show() override; 73 void Show() override;
77 bool IsAnimating() override; 74 bool IsAnimating() override;
(...skipping 19 matching lines...) Expand all
97 94
98 // The contents of the popup. 95 // The contents of the popup.
99 ExclusiveAccessView* view_; 96 ExclusiveAccessView* view_;
100 97
101 content::NotificationRegistrar registrar_; 98 content::NotificationRegistrar registrar_;
102 99
103 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessBubbleViews); 100 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessBubbleViews);
104 }; 101 };
105 102
106 #endif // CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_H_ 103 #endif // CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698