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

Side by Side Diff: ash/first_run/first_run_delegate.h

Issue 26277006: Created ash::FirstRunHelper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed. Created 7 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
« no previous file with comments | « ash/ash.gyp ('k') | ash/first_run/first_run_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ASH_FIRST_RUN_FIRST_RUN_DELEGATE_H_
6 #define ASH_FIRST_RUN_FIRST_RUN_DELEGATE_H_
7
8 #include "ash/ash_export.h"
9 #include "base/basictypes.h"
10
11 namespace gfx {
12 class Rect;
13 }
14
15 namespace ash {
16
17 // Interface used by first-run tutorial to manipulate and retreive information
18 // about shell elements.
19 // All returned coordinates are in screen coordinate system.
20 class ASH_EXPORT FirstRunDelegate {
oshima 2013/10/11 20:58:44 XxxDelegate is for interface to delegate the part
dzhioev (left Google) 2013/10/12 00:02:50 It's not only for information retrieval, but also
oshima 2013/10/16 16:32:05 It's still not delegate. Controller/Manager would
21 public:
22 FirstRunDelegate();
23 virtual ~FirstRunDelegate();
24
25 // Opens and closes app list.
26 virtual void OpenAppList() = 0;
27 virtual void CloseAppList() = 0;
28
29 // Returns bounding rectangle of launcher elements.
30 virtual gfx::Rect GetLauncherBounds() = 0;
oshima 2013/10/11 20:58:44 what if the launcher is hidden?
dzhioev (left Google) 2013/10/12 00:02:50 It's not decided yet how to handle this case. Mayb
oshima 2013/10/16 16:32:05 This issue sounds same as app_list. Shouldn't this
31
32 // Returns bounds of application list button.
33 virtual gfx::Rect GetAppListButtonBounds() = 0;
34
35 // If application list is opened saves its bounds to |result| and returns
36 // |true|. Returns |false| otherwise.
37 virtual bool GetAppListBounds(gfx::Rect* result) = 0;
38
39 private:
40 DISALLOW_COPY_AND_ASSIGN(FirstRunDelegate);
41 };
42
43 } // namespace ash
44
45 #endif // ASH_FIRST_RUN_FIRST_RUN_DELEGATE_H_
46
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/first_run/first_run_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698