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

Side by Side Diff: webkit/glue/web_intent_service_data.h

Issue 8741006: Add exports needed for glue to build as a component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase to r112585 Created 9 years 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 | « webkit/glue/web_intent_data.h ('k') | webkit/glue/web_io_operators.h » ('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) 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 WEBKIT_GLUE_WEB_INTENT_SERVICE_DATA_H_ 5 #ifndef WEBKIT_GLUE_WEB_INTENT_SERVICE_DATA_H_
6 #define WEBKIT_GLUE_WEB_INTENT_SERVICE_DATA_H_ 6 #define WEBKIT_GLUE_WEB_INTENT_SERVICE_DATA_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
11 #include "webkit/glue/webkit_glue_export.h"
11 #include <iosfwd> 12 #include <iosfwd>
12 13
13 namespace webkit_glue { 14 namespace webkit_glue {
14 15
15 // Describes the relevant elements of a WebIntent service. 16 // Describes the relevant elements of a WebIntent service.
16 struct WebIntentServiceData { 17 struct WEBKIT_GLUE_EXPORT WebIntentServiceData {
17 // An intents disposition determines which context the service is opened in. 18 // An intents disposition determines which context the service is opened in.
18 enum Disposition { 19 enum Disposition {
19 DISPOSITION_WINDOW, // Open service inside a new window. (Default) 20 DISPOSITION_WINDOW, // Open service inside a new window. (Default)
20 DISPOSITION_INLINE, // Open service inside the picker UI window. 21 DISPOSITION_INLINE, // Open service inside the picker UI window.
21 }; 22 };
22 23
23 WebIntentServiceData(); 24 WebIntentServiceData();
24 WebIntentServiceData(const GURL& service_url, 25 WebIntentServiceData(const GURL& service_url,
25 const string16& action, 26 const string16& action,
26 const string16& type, 27 const string16& type,
27 const string16& title); 28 const string16& title);
28 ~WebIntentServiceData(); 29 ~WebIntentServiceData();
29 30
30 bool operator==(const WebIntentServiceData& other) const; 31 bool operator==(const WebIntentServiceData& other) const;
31 32
32 void setDisposition(const string16& disp); 33 void setDisposition(const string16& disp);
33 34
34 GURL service_url; // URL for service invocation. 35 GURL service_url; // URL for service invocation.
35 string16 action; // Name of action provided by service. 36 string16 action; // Name of action provided by service.
36 string16 type; // MIME type of data accepted by service. 37 string16 type; // MIME type of data accepted by service.
37 string16 title; // The title of the service. 38 string16 title; // The title of the service.
38 Disposition disposition; // The context the service is opened in. 39 Disposition disposition; // The context the service is opened in.
39 }; 40 };
40 41
41 // Printing operator - helps gtest produce readable error messages. 42 // Printing operator - helps gtest produce readable error messages.
42 std::ostream& operator<<(std::ostream& os, 43 WEBKIT_GLUE_EXPORT std::ostream& operator<<(
43 const webkit_glue::WebIntentServiceData& intent); 44 std::ostream& os,
45 const webkit_glue::WebIntentServiceData& intent);
44 46
45 } // namespace webkit_glue 47 } // namespace webkit_glue
46 48
47 #endif // CHROME_BROWSER_INTENTS_WEB_INTENT_SERVICE_DATA_H_ 49 #endif // CHROME_BROWSER_INTENTS_WEB_INTENT_SERVICE_DATA_H_
OLDNEW
« no previous file with comments | « webkit/glue/web_intent_data.h ('k') | webkit/glue/web_io_operators.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698