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

Unified Diff: ui/views/desktop/desktop_window_manager.h

Issue 8598024: Now that we are doing a hard-cut-over to Aura, remove a bunch of *Views based classes that are ob... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/desktop/desktop_views_delegate.cc ('k') | ui/views/desktop/desktop_window_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/desktop/desktop_window_manager.h
===================================================================
--- ui/views/desktop/desktop_window_manager.h (revision 110826)
+++ ui/views/desktop/desktop_window_manager.h (working copy)
@@ -1,99 +0,0 @@
-// Copyright (c) 2011 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 UI_VIEWS_DESKTOP_DESKTOP_WINDOW_MANAGER_H_
-#define UI_VIEWS_DESKTOP_DESKTOP_WINDOW_MANAGER_H_
-#pragma once
-
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/memory/scoped_ptr.h"
-#include "views/widget/widget.h"
-#include "views/widget/window_manager.h"
-
-
-namespace gfx {
-class Point;
-}
-
-namespace views {
-namespace desktop {
-
-class WindowController;
-
-// A tentative window manager for views destktop until we have *right*
-// implementation based on aura/layer API. This is minimum
-// implmenetation and complicated actio like moving transformed window
-// doesn't work.
-class DesktopWindowManager : public views::WindowManager,
- public Widget::Observer {
- public:
- DesktopWindowManager(Widget* desktop);
- virtual ~DesktopWindowManager();
-
- void UpdateWindowsAfterScreenSizeChanged(const gfx::Rect& new_size);
-
- // views::WindowManager implementations:
- virtual void StartMoveDrag(views::Widget* widget,
- const gfx::Point& point) OVERRIDE;
- virtual void StartResizeDrag(views::Widget* widget,
- const gfx::Point& point,
- int hittest_code);
- virtual bool SetMouseCapture(views::Widget* widget) OVERRIDE;
- virtual bool ReleaseMouseCapture(views::Widget* widget) OVERRIDE;
- virtual bool HasMouseCapture(const views::Widget* widget) const OVERRIDE;
- virtual bool HandleKeyEvent(views::Widget* widget,
- const views::KeyEvent& event) OVERRIDE;
- virtual bool HandleMouseEvent(views::Widget* widget,
- const views::MouseEvent& event) OVERRIDE;
- virtual ui::TouchStatus HandleTouchEvent(views::Widget* widget,
- const views::TouchEvent& event) OVERRIDE;
-
- virtual void Register(Widget* widget) OVERRIDE;
-
- private:
- // Overridden from Widget::Observer.
- virtual void OnWidgetClosing(Widget* widget) OVERRIDE;
- virtual void OnWidgetVisibilityChanged(Widget* widget, bool visible) OVERRIDE;
- virtual void OnWidgetActivationChanged(Widget* widget, bool active) OVERRIDE;
-
- void SetMouseCapture();
- void ReleaseMouseCapture();
- bool HasMouseCapture() const;
-
- void Activate(Widget* widget);
-
- // Returns true if a deactivated widget at the location was activated. Returns
- // false otherwise.
- bool ActivateWidgetAtLocation(Widget* widget, const gfx::Point& point);
-
- views::Widget* desktop_;
- views::Widget* mouse_capture_;
- views::Widget* active_widget_;
-
- // An unordered list of all the top-level Widgets.
- std::vector<views::Widget*> toplevels_;
-
- scoped_ptr<WindowController> window_controller_;
-
- DISALLOW_COPY_AND_ASSIGN(DesktopWindowManager);
-};
-
-// An behavioral interface for objects implements window resize/movement.
-class WindowController {
- public:
- WindowController();
- virtual ~WindowController();
- virtual bool OnMouseEvent(const views::MouseEvent& event) = 0;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(WindowController);
-};
-
-} // namespace desktop
-} // namespace views
-
-#endif // UI_VIEWS_DESKTOP_DESKTOP_WINDOW_MANAGER_H_
« no previous file with comments | « ui/views/desktop/desktop_views_delegate.cc ('k') | ui/views/desktop/desktop_window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698