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

Unified Diff: ui/views/widget/desktop_layout_manager.h

Issue 11369220: Move the desktop aura classes into a desktop subdir to make the gyp simpler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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/widget/desktop_aura/x11_window_event_filter.cc ('k') | ui/views/widget/desktop_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_layout_manager.h
===================================================================
--- ui/views/widget/desktop_layout_manager.h (revision 167419)
+++ ui/views/widget/desktop_layout_manager.h (working copy)
@@ -1,49 +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 UI_VIEWS_WIDGET_DESKTOP_LAYOUT_MANAGER_H_
-#define UI_VIEWS_WIDGET_DESKTOP_LAYOUT_MANAGER_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "ui/aura/layout_manager.h"
-#include "ui/views/views_export.h"
-
-namespace aura {
-class RootWindow;
-class Window;
-}
-
-namespace views {
-
-// A LayoutManager that by default makes the first Window added to a
-// RootWindow the full size, and will be resized as the RootWindow is resized.
-class VIEWS_EXPORT DesktopLayoutManager : public aura::LayoutManager {
- public:
- explicit DesktopLayoutManager(aura::RootWindow* root_window);
- virtual ~DesktopLayoutManager();
-
- // Overridden from aura::LayoutManager:
- virtual void OnWindowResized() OVERRIDE;
- virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE;
- virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE;
- virtual void OnWindowRemovedFromLayout(aura::Window* child) OVERRIDE;
- virtual void OnChildWindowVisibilityChanged(aura::Window* child,
- bool visible) OVERRIDE;
- virtual void SetChildBounds(aura::Window* child,
- const gfx::Rect& requested_bounds) OVERRIDE;
-
- private:
- // Sets the size of |main_window_| to the internal bounds of |root_window_|.
- void SetMainWindowSize();
-
- aura::RootWindow* root_window_;
- aura::Window* main_window_;
-
- DISALLOW_COPY_AND_ASSIGN(DesktopLayoutManager);
-};
-
-} // namespace views
-
-#endif // UI_VIEWS_WIDGET_DESKTOP_LAYOUT_MANAGER_H_
« no previous file with comments | « ui/views/widget/desktop_aura/x11_window_event_filter.cc ('k') | ui/views/widget/desktop_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698