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

Side by Side Diff: chrome/app/metro_driver_win.h

Issue 9718001: Load the metro driver dll at startup (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_APP_METRO_DRIVER_WIN_H_
6 #define CHROME_APP_METRO_DRIVER_WIN_H_
7
8 #include <Windows.h>
9
10 typedef int (*MainFn)(HINSTANCE instance);
darin (slow to review) 2012/03/19 16:30:45 nit: put this typedef inside the MetroDriver class
11
12 // Helper class to manage the metro driver dll. When present in the system,
13 // the main process thread needs to call InitMetro(), normal execution of
14 // chrome initialization will continue on a second thread while the main
15 // thread will be servicing the metro message loop.
16 class MetroDriver {
17 public:
18 MetroDriver();
darin (slow to review) 2012/03/19 16:30:45 nit: new line after here
19 // returns true if chrome is being launched in metro. If so we should
20 // call RunInMetro(). If not then we should just run chrome as usual.
21 bool in_metro_mode() const { return (NULL != init_metro_fn_); }
22
23 // Enter the metro main function, which will only return when chrome metro
24 // is closed. Once metro has initialized, the dll creates a new thread
25 // which runs |main_fn|. This method returns when the chrome metro session
26 // is closed by the user.
27 int RunInMetro(HINSTANCE instance, MainFn main_fn);
28
29 private:
30 void* init_metro_fn_;
31 };
32
33 #endif // CHROME_APP_METRO_DRIVER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698