summaryrefslogtreecommitdiffstats
path: root/ash/wm/custom_frame_view_ash.h
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-13 19:40:23 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-13 19:40:23 +0000
commit400a61c5463c029125d6c854c9eee773b9be302b (patch)
tree2322ca5fffc23cd90393c3096a882c42e105c792 /ash/wm/custom_frame_view_ash.h
parent5009ee278b587d7d42bb84203566b1a471b92974 (diff)
downloadchromium_src-400a61c5463c029125d6c854c9eee773b9be302b.zip
chromium_src-400a61c5463c029125d6c854c9eee773b9be302b.tar.gz
chromium_src-400a61c5463c029125d6c854c9eee773b9be302b.tar.bz2
Move frame related code to ash/frame, plus add OWNERS file.
An attempt to reduce and reorg files in ash/wm as it has too many files. BUG=None R=pkotwicz@chromium.org, sky@chromium.org Review URL: https://codereview.chromium.org/196653008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256891 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/custom_frame_view_ash.h')
-rw-r--r--ash/wm/custom_frame_view_ash.h88
1 files changed, 0 insertions, 88 deletions
diff --git a/ash/wm/custom_frame_view_ash.h b/ash/wm/custom_frame_view_ash.h
deleted file mode 100644
index c7b09f1..0000000
--- a/ash/wm/custom_frame_view_ash.h
+++ /dev/null
@@ -1,88 +0,0 @@
-// Copyright (c) 2012 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 ASH_WM_CUSTOM_FRAME_VIEW_ASH_H_
-#define ASH_WM_CUSTOM_FRAME_VIEW_ASH_H_
-
-#include "ash/ash_export.h"
-#include "base/memory/scoped_ptr.h"
-#include "ui/views/window/non_client_view.h"
-
-namespace ash {
-class FrameBorderHitTestController;
-class HeaderPainter;
-class ImmersiveFullscreenController;
-}
-namespace views {
-class Widget;
-}
-
-namespace ash {
-
-// A NonClientFrameView used for packaged apps, dialogs and other non-browser
-// windows. It supports immersive fullscreen. When in immersive fullscreen, the
-// client view takes up the entire widget and the window header is an overlay.
-// The window header overlay slides onscreen when the user hovers the mouse at
-// the top of the screen. See also views::CustomFrameView and
-// BrowserNonClientFrameViewAsh.
-class ASH_EXPORT CustomFrameViewAsh : public views::NonClientFrameView {
- public:
- // Internal class name.
- static const char kViewClassName[];
-
- explicit CustomFrameViewAsh(views::Widget* frame);
- virtual ~CustomFrameViewAsh();
-
- // Inits |immersive_fullscreen_controller| so that the controller reveals
- // and hides |header_view_| in immersive fullscreen.
- // CustomFrameViewAsh does not take ownership of
- // |immersive_fullscreen_controller|.
- void InitImmersiveFullscreenControllerForView(
- ImmersiveFullscreenController* immersive_fullscreen_controller);
-
- // views::NonClientFrameView overrides:
- virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
- virtual gfx::Rect GetWindowBoundsForClientBounds(
- const gfx::Rect& client_bounds) const OVERRIDE;
- virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
- virtual void GetWindowMask(const gfx::Size& size,
- gfx::Path* window_mask) OVERRIDE;
- virtual void ResetWindowControls() OVERRIDE;
- virtual void UpdateWindowIcon() OVERRIDE;
- virtual void UpdateWindowTitle() OVERRIDE;
-
- // views::View overrides:
- virtual gfx::Size GetPreferredSize() OVERRIDE;
- virtual const char* GetClassName() const OVERRIDE;
- virtual gfx::Size GetMinimumSize() OVERRIDE;
- virtual gfx::Size GetMaximumSize() OVERRIDE;
- virtual void SchedulePaintInRect(const gfx::Rect& r) OVERRIDE;
- virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE;
-
- // Get the view of the header.
- views::View* GetHeaderView();
-
- private:
- class OverlayView;
- friend class TestWidgetConstraintsDelegate;
-
- // Height from top of window to top of client area.
- int NonClientTopBorderHeight() const;
-
- // Not owned.
- views::Widget* frame_;
-
- // View which contains the title and window controls.
- class HeaderView;
- HeaderView* header_view_;
-
- // Updates the hittest bounds overrides based on the window state type.
- scoped_ptr<FrameBorderHitTestController> frame_border_hit_test_controller_;
-
- DISALLOW_COPY_AND_ASSIGN(CustomFrameViewAsh);
-};
-
-} // namespace ash
-
-#endif // ASH_WM_CUSTOM_FRAME_VIEW_ASH_H_