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

Side by Side Diff: ui/aura/desktop_delegate.h

Issue 8247012: Positions the launcher in the bottom left corner. Adds ShellDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix TestDesktopDelegate Created 9 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_AURA_DESKTOP_DELEGATE_H_ 5 #ifndef UI_AURA_DESKTOP_DELEGATE_H_
6 #define UI_AURA_DESKTOP_DELEGATE_H_ 6 #define UI_AURA_DESKTOP_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/aura/aura_export.h" 9 #include "ui/aura/aura_export.h"
10 10
11 namespace aura { 11 namespace aura {
12 12
13 class Window; 13 class Window;
14 14
15 class AURA_EXPORT DesktopDelegate { 15 class AURA_EXPORT DesktopDelegate {
16 public: 16 public:
17 virtual ~DesktopDelegate() {} 17 virtual ~DesktopDelegate() {}
18 18
19 // Called by the Window when its parent is set to NULL. The delegate is given 19 // Called by the Window when its parent is set to NULL. The delegate is given
20 // an opportunity to inspect the window and add it to a default parent window 20 // an opportunity to inspect the window and add it to a default parent window
21 // of its choosing. 21 // of its choosing.
22 virtual void AddChildToDefaultParent(Window* window) = 0; 22 virtual void AddChildToDefaultParent(Window* window) = 0;
23 23
24 // Returns the window that should be activated other than |ignore|. 24 // Returns the window that should be activated other than |ignore|.
25 virtual Window* GetTopmostWindowToActivate(Window* ignore) const = 0; 25 virtual Window* GetTopmostWindowToActivate(Window* ignore) const = 0;
26
27 // TODO(sky): convert these to DesktopObserver methods once Sadrul lands his
28 // patch.
29 // Invoked when a window is added.
30 virtual void WindowAdded(Window* window) = 0;
31
32 // Invoked before a window is removed.
33 virtual void WillRemoveWindow(Window* window) = 0;
26 }; 34 };
27 35
28 } // namespace aura 36 } // namespace aura
29 37
30 #endif // UI_AURA_DESKTOP_DELEGATE_H_ 38 #endif // UI_AURA_DESKTOP_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/aura/desktop.cc ('k') | ui/aura/test/test_desktop_delegate.h » ('j') | ui/aura/window.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698