Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Side by Side Diff: chrome/browser/ui/gtk/fullscreen_exit_bubble_gtk.h

Issue 13866033: Animate the fullscreen exit bubble's opacity instead of its bounds when in immersive fullscreen (Closed) Base URL: http://git.chromium.org/chromium/src.git@exit_bubble
Patch Set: Created 7 years, 8 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_GTK_FULLSCREEN_EXIT_BUBBLE_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_FULLSCREEN_EXIT_BUBBLE_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_FULLSCREEN_EXIT_BUBBLE_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_FULLSCREEN_EXIT_BUBBLE_GTK_H_
7 7
8 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble.h" 8 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble.h"
9 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h" 9 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h"
10 #include "chrome/browser/ui/gtk/slide_animator_gtk.h" 10 #include "chrome/browser/ui/gtk/slide_animator_gtk.h"
(...skipping 24 matching lines...) Expand all
35 FullscreenExitBubbleType bubble_type); 35 FullscreenExitBubbleType bubble_type);
36 protected: 36 protected:
37 // FullScreenExitBubble 37 // FullScreenExitBubble
38 virtual gfx::Rect GetPopupRect(bool ignore_animation_state) const OVERRIDE; 38 virtual gfx::Rect GetPopupRect(bool ignore_animation_state) const OVERRIDE;
39 virtual gfx::Point GetCursorScreenPoint() OVERRIDE; 39 virtual gfx::Point GetCursorScreenPoint() OVERRIDE;
40 virtual bool WindowContainsPoint(gfx::Point pos) OVERRIDE; 40 virtual bool WindowContainsPoint(gfx::Point pos) OVERRIDE;
41 virtual bool IsWindowActive() OVERRIDE; 41 virtual bool IsWindowActive() OVERRIDE;
42 virtual void Hide() OVERRIDE; 42 virtual void Hide() OVERRIDE;
43 virtual void Show() OVERRIDE; 43 virtual void Show() OVERRIDE;
44 virtual bool IsAnimating() OVERRIDE; 44 virtual bool IsAnimating() OVERRIDE;
45 virtual bool CanMouseTriggerSlideIn() const OVERRIDE;
45 46
46 private: 47 private:
47 void InitWidgets(); 48 void InitWidgets();
48 std::string GetMessage(const GURL& url); 49 std::string GetMessage(const GURL& url);
49 void StartWatchingMouseIfNecessary(); 50 void StartWatchingMouseIfNecessary();
50 51
51 GtkWidget* widget() const { 52 GtkWidget* widget() const {
52 return slide_widget_->widget(); 53 return slide_widget_->widget();
53 } 54 }
54 55
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 base::OneShotTimer<FullscreenExitBubbleGtk> initial_delay_; 87 base::OneShotTimer<FullscreenExitBubbleGtk> initial_delay_;
87 88
88 ui::GtkSignalRegistrar signals_; 89 ui::GtkSignalRegistrar signals_;
89 90
90 content::NotificationRegistrar registrar_; 91 content::NotificationRegistrar registrar_;
91 92
92 DISALLOW_COPY_AND_ASSIGN(FullscreenExitBubbleGtk); 93 DISALLOW_COPY_AND_ASSIGN(FullscreenExitBubbleGtk);
93 }; 94 };
94 95
95 #endif // CHROME_BROWSER_UI_GTK_FULLSCREEN_EXIT_BUBBLE_GTK_H_ 96 #endif // CHROME_BROWSER_UI_GTK_FULLSCREEN_EXIT_BUBBLE_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698