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

Unified Diff: ui/aura_shell/examples/window_type_launcher.h

Issue 7972023: Implicit animations through Layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More tweaks Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura_shell/desktop_layout_manager.cc ('k') | ui/aura_shell/examples/window_type_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/examples/window_type_launcher.h
diff --git a/ui/aura_shell/examples/window_type_launcher.h b/ui/aura_shell/examples/window_type_launcher.h
index aab11262893059707f39a8e96493c3dfe47492a5..8dbefa7faab327176254e4889ed01ed279747a3e 100644
--- a/ui/aura_shell/examples/window_type_launcher.h
+++ b/ui/aura_shell/examples/window_type_launcher.h
@@ -6,6 +6,10 @@
#define UI_AURA_SHELL_EXAMPLES_WINDOW_TYPE_LAUNCHER_H_
#pragma once
+#include <utility>
+#include <vector>
+
+#include "base/task.h"
#include "views/context_menu_controller.h"
#include "views/controls/button/button.h"
#include "views/controls/menu/menu_delegate.h"
@@ -30,10 +34,16 @@ class WindowTypeLauncher : public views::WidgetDelegateView,
virtual ~WindowTypeLauncher();
private:
+ typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair;
+
enum MenuCommands {
COMMAND_NEW_WINDOW = 1,
+ COMMAND_TILE_WINDOWS = 2,
};
+ void TileWindows();
+ void RestoreTiledWindows();
+
// Overridden from views::View:
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
virtual void Layout() OVERRIDE;
@@ -61,8 +71,13 @@ class WindowTypeLauncher : public views::WidgetDelegateView,
views::NativeTextButton* create_button_;
views::NativeTextButton* create_nonresizable_button_;
views::NativeTextButton* bubble_button_;
+ views::NativeTextButton* tile_button_;
scoped_ptr<views::MenuRunner> menu_runner_;
+ std::vector<WindowAndBoundsPair> to_restore_;
+
+ ScopedRunnableMethodFactory<WindowTypeLauncher> method_factory_;
+
DISALLOW_COPY_AND_ASSIGN(WindowTypeLauncher);
};
« no previous file with comments | « ui/aura_shell/desktop_layout_manager.cc ('k') | ui/aura_shell/examples/window_type_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698