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

Side by Side Diff: base/win/metro.h

Issue 10824387: Implement forwarding of search queries for metro mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | « no previous file | base/win/metro.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 BASE_WIN_METRO_H_ 5 #ifndef BASE_WIN_METRO_H_
6 #define BASE_WIN_METRO_H_ 6 #define BASE_WIN_METRO_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 #include <wpcapi.h> 9 #include <wpcapi.h>
10 10
11 #include "base/base_export.h" 11 #include "base/base_export.h"
12 #include "base/string16.h" 12 #include "base/string16.h"
13 13
14 namespace base { 14 namespace base {
15 namespace win { 15 namespace win {
16 16
17 // Identifies the type of the metro launch. 17 // Identifies the type of the metro launch.
18 enum MetroLaunchType { 18 enum MetroLaunchType {
19 LAUNCH, 19 METRO_LAUNCH,
20 SEARCH, 20 METRO_SEARCH,
21 SHARE, 21 METRO_SHARE,
22 FILE, 22 METRO_FILE,
23 PROTOCOL, 23 METRO_PROTOCOL,
24 LASTLAUNCHTYPE, 24 METRO_LAUNCH_ERROR,
25 METRO_LASTLAUNCHTYPE,
25 }; 26 };
26 27
27 // In metro mode, this enum identifies the last execution state, i.e. whether 28 // In metro mode, this enum identifies the last execution state, i.e. whether
28 // we crashed, terminated, etc. 29 // we crashed, terminated, etc.
29 enum MetroPreviousExecutionState { 30 enum MetroPreviousExecutionState {
30 NOTRUNNING, 31 NOTRUNNING,
31 RUNNING, 32 RUNNING,
32 SUSPENDED, 33 SUSPENDED,
33 TERMINATED, 34 TERMINATED,
34 CLOSEDBYUSER, 35 CLOSEDBYUSER,
(...skipping 29 matching lines...) Expand all
64 BASE_EXPORT wchar_t* LocalAllocAndCopyString(const string16& src); 65 BASE_EXPORT wchar_t* LocalAllocAndCopyString(const string16& src);
65 66
66 // Returns true if the screen supports touch. 67 // Returns true if the screen supports touch.
67 BASE_EXPORT bool IsTouchEnabled(); 68 BASE_EXPORT bool IsTouchEnabled();
68 69
69 // Returns true if Windows Parental control activity logging is enabled. This 70 // Returns true if Windows Parental control activity logging is enabled. This
70 // feature is available on Windows Vista and beyond. 71 // feature is available on Windows Vista and beyond.
71 // This function should ideally be called on the UI thread. 72 // This function should ideally be called on the UI thread.
72 BASE_EXPORT bool IsParentalControlActivityLoggingOn(); 73 BASE_EXPORT bool IsParentalControlActivityLoggingOn();
73 74
75 // Returns the type of launch and the activation params. For example if the
76 // the launch is for METRO_PROTOCOL then the params is a url.
77 BASE_EXPORT MetroLaunchType GetMetroLaunchParams(string16* params);
78
74 // Handler function for the buttons on a metro dialog box 79 // Handler function for the buttons on a metro dialog box
75 typedef void (*MetroDialogButtonPressedHandler)(); 80 typedef void (*MetroDialogButtonPressedHandler)();
76 81
77 // Function to display metro style notifications. 82 // Function to display metro style notifications.
78 typedef void (*MetroNotification)(const char* origin_url, 83 typedef void (*MetroNotification)(const char* origin_url,
79 const char* icon_url, 84 const char* icon_url,
80 const wchar_t* title, 85 const wchar_t* title,
81 const wchar_t* body, 86 const wchar_t* body,
82 const wchar_t* display_source, 87 const wchar_t* display_source,
83 const char* notification_id); 88 const char* notification_id);
84 89
85 90
86 } // namespace win 91 } // namespace win
87 } // namespace base 92 } // namespace base
88 93
89 #endif // BASE_WIN_METRO_H_ 94 #endif // BASE_WIN_METRO_H_
OLDNEW
« no previous file with comments | « no previous file | base/win/metro.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698