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

Unified Diff: ash/launcher/launcher.h

Issue 9703026: Makes the maximize/restore button handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate review feedback Created 8 years, 9 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 | « ash/ash.gyp ('k') | ash/launcher/launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/launcher.h
diff --git a/ash/launcher/launcher.h b/ash/launcher/launcher.h
index dea112cae95de680648e46a18c2574e4dc66950e..400513778b6736ba8bb3420e3a3f521ffe9f2b29 100644
--- a/ash/launcher/launcher.h
+++ b/ash/launcher/launcher.h
@@ -14,6 +14,10 @@ namespace aura {
class Window;
}
+namespace gfx {
+class Rect;
+}
+
namespace views {
class Widget;
}
@@ -22,6 +26,7 @@ namespace ash {
namespace internal {
class FocusCycler;
+class LauncherView;
}
class LauncherDelegate;
@@ -39,6 +44,10 @@ class ASH_EXPORT Launcher {
void SetStatusWidth(int width);
int GetStatusWidth();
+ // Returns the screen bounds of the item for the specified window. If there is
+ // no item for the specified window an empty rect is returned.
+ gfx::Rect GetScreenBoundsOfItemIconForWindow(aura::Window* window);
+
LauncherDelegate* delegate() { return delegate_.get(); }
LauncherModel* model() { return model_.get(); }
@@ -49,10 +58,6 @@ class ASH_EXPORT Launcher {
private:
class DelegateView;
- // If necessary asks the delegate if an entry should be created in the
- // launcher for |window|. This only asks the delegate once for a window.
- void MaybeAdd(aura::Window* window);
-
scoped_ptr<LauncherModel> model_;
// Widget hosting the view.
@@ -63,6 +68,8 @@ class ASH_EXPORT Launcher {
// Contents view of the widget. Houses the LauncherView.
DelegateView* delegate_view_;
+ internal::LauncherView* launcher_view_;
+
scoped_ptr<LauncherDelegate> delegate_;
DISALLOW_COPY_AND_ASSIGN(Launcher);
« no previous file with comments | « ash/ash.gyp ('k') | ash/launcher/launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698