summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/fullscreen_exit_bubble.h
diff options
context:
space:
mode:
authorkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-23 22:52:31 +0000
committerkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-23 22:52:31 +0000
commit0c47f08078ca7d5f886e8eaa0c4d678656024c51 (patch)
tree743e5042bde4429972a5813b30058c38217d718c /chrome/browser/views/fullscreen_exit_bubble.h
parentee941fe58d0fcf4a71cf6728d621b2c3d84ac72b (diff)
downloadchromium_src-0c47f08078ca7d5f886e8eaa0c4d678656024c51.zip
chromium_src-0c47f08078ca7d5f886e8eaa0c4d678656024c51.tar.gz
chromium_src-0c47f08078ca7d5f886e8eaa0c4d678656024c51.tar.bz2
Revert "Fullscreen mode UI."
This reverts commit d108cc705611554de13712935ec11942dd390a5d. Review URL: http://codereview.appspot.com/21056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10217 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/fullscreen_exit_bubble.h')
-rw-r--r--chrome/browser/views/fullscreen_exit_bubble.h85
1 files changed, 0 insertions, 85 deletions
diff --git a/chrome/browser/views/fullscreen_exit_bubble.h b/chrome/browser/views/fullscreen_exit_bubble.h
deleted file mode 100644
index ff855be..0000000
--- a/chrome/browser/views/fullscreen_exit_bubble.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_VIEWS_FULLSCREEN_EXIT_BUBBLE_H__
-#define CHROME_BROWSER_VIEWS_FULLSCREEN_EXIT_BUBBLE_H__
-
-#include "base/scoped_ptr.h"
-#include "chrome/browser/command_updater.h"
-#include "chrome/common/slide_animation.h"
-#include "chrome/views/link.h"
-#include "chrome/views/widget_win.h"
-
-// FullscreenExitBubble is responsible for showing a bubble atop the screen in
-// fullscreen mode, telling users how to exit and providing a click target.
-// The bubble auto-hides, and re-shows when the user moves to the screen top.
-
-class FullscreenExitBubble : public views::LinkController,
- public AnimationDelegate {
- public:
- explicit FullscreenExitBubble(
- views::Widget* frame,
- CommandUpdater::CommandUpdaterDelegate* delegate);
- virtual ~FullscreenExitBubble();
-
- private:
- class FullscreenExitView;
-
- static const double kOpacity; // Opacity of the bubble, 0.0 - 1.0
- static const int kInitialDelayMs; // Initial time bubble remains onscreen
- static const int kPositionCheckHz; // How fast to check the mouse position
- static const int kSlideInRegionHeightPx;
- // Height of region triggering slide-in
- static const int kSlideInDurationMs; // Duration of slide-in animation
- static const int kSlideOutDurationMs; // Duration of slide-out animation
-
- // views::LinkController
- virtual void LinkActivated(views::Link* source, int event_flags);
-
- // AnimationDelegate
- virtual void AnimationProgressed(const Animation* animation);
- virtual void AnimationEnded(const Animation* animation);
-
- // Called after the initial delay to start checking the mouse position.
- void AfterInitialDelay();
-
- // Called repeatedly to get the current mouse position and animate the bubble
- // on or off the screen as appropriate.
- void CheckMousePosition();
-
- // Returns the current desirable rect for the popup window. If
- // |ignore_animation_state| is true this returns the rect assuming the popup
- // is fully onscreen.
- gfx::Rect GetPopupRect(bool ignore_animation_state) const;
-
- // The root view containing us.
- views::View* root_view_;
-
- // Someone who can toggle fullscreen mode on and off when the user requests
- // it.
- CommandUpdater::CommandUpdaterDelegate* delegate_;
-
- // We use an HWND for the popup so that it may float above any plugins in the
- // page.
- views::WidgetWin* popup_;
-
- // The contents of the popup.
- FullscreenExitView* view_;
-
- // Animation controlling sliding into/out of the top of the screen.
- scoped_ptr<SlideAnimation> size_animation_;
-
- // Timer to delay before starting the mouse checking/bubble hiding code.
- base::OneShotTimer<FullscreenExitBubble> initial_delay_;
-
- // Timer to poll the current mouse position. We can't just listen for mouse
- // events without putting a non-empty HWND onscreen (or hooking Windows, which
- // has other problems), so instead we run a low-frequency poller to see if the
- // user has moved in or out of our show/hide regions.
- base::RepeatingTimer<FullscreenExitBubble> mouse_position_checker_;
-
- DISALLOW_COPY_AND_ASSIGN(FullscreenExitBubble);
-};
-
-#endif // CHROME_BROWSER_VIEWS_FULLSCREEN_EXIT_BUBBLE_H__