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

Side by Side Diff: chrome/browser/chromeos/login/test/app_window_waiter.h

Issue 205713002: Add a basic demo mode browser test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 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 CHROME_BROWSER_CHROMEOS_LOGIN_TEST_APP_WINDOW_WAITER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_TEST_APP_WINDOW_WAITER_H_
7
8 #include <string>
9
10 #include "apps/app_window_registry.h"
11 #include "base/compiler_specific.h"
12
13 namespace apps {
14 class AppWindow;
15 }
16
17 namespace content {
18 class MessageLoopRunner;
19 }
20
21 namespace chromeos {
22
23 // Helper class that monitors app windows to wait for a window to appear.
24 class AppWindowWaiter : public apps::AppWindowRegistry::Observer {
25 public:
26 AppWindowWaiter(apps::AppWindowRegistry* registry,
27 const std::string& app_id);
28 virtual ~AppWindowWaiter();
29
30 apps::AppWindow* Wait();
31
32 // AppWindowRegistry::Observer
bartfab (slow) 2014/03/25 12:52:54 Nit: Add a colon at the end.
rkc 2014/03/26 21:30:40 Done.
33 virtual void OnAppWindowAdded(apps::AppWindow* app_window) OVERRIDE;
34 virtual void OnAppWindowIconChanged(apps::AppWindow* app_window) OVERRIDE;
35 virtual void OnAppWindowRemoved(apps::AppWindow* app_window) OVERRIDE;
36
37 private:
38 apps::AppWindowRegistry* registry_;
39 std::string app_id_;
40 scoped_refptr<content::MessageLoopRunner> message_loop_runner_;
bartfab (slow) 2014/03/25 12:52:54 1) New code should use base::RunLoop instead. 2) N
rkc 2014/03/26 21:30:40 Done.
41 apps::AppWindow* window_;
42 bool running_;
43
44 DISALLOW_COPY_AND_ASSIGN(AppWindowWaiter);
bartfab (slow) 2014/03/25 12:52:54 Nit: #include "base/basictypes.h"
rkc 2014/03/26 21:30:40 Done.
45 };
46
47 } // namespace chromeos
48
49 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TEST_APP_WINDOW_WAITER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698