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

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

Issue 4326002: Revert 64845 - Add convert_web_app.*, a utility to convert web apps declared... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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 | « chrome/common/extensions/extension_constants.h ('k') | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_DOM_OPERATIONS_H__ 5 #ifndef WEBKIT_GLUE_DOM_OPERATIONS_H__
6 #define WEBKIT_GLUE_DOM_OPERATIONS_H__ 6 #define WEBKIT_GLUE_DOM_OPERATIONS_H__
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "gfx/size.h" 11 #include "gfx/size.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "third_party/skia/include/core/SkBitmap.h"
14 13
15 namespace WebKit { 14 namespace WebKit {
16 class WebDocument; 15 class WebDocument;
17 class WebElement; 16 class WebElement;
18 class WebString; 17 class WebString;
19 class WebView; 18 class WebView;
20 } 19 }
21 20
22 // A collection of operations that access the underlying WebKit DOM directly. 21 // A collection of operations that access the underlying WebKit DOM directly.
23 namespace webkit_glue { 22 namespace webkit_glue {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // Structure used when installing a web page as an app. Populated via 57 // Structure used when installing a web page as an app. Populated via
59 // GetApplicationInfo. 58 // GetApplicationInfo.
60 struct WebApplicationInfo { 59 struct WebApplicationInfo {
61 WebApplicationInfo(); 60 WebApplicationInfo();
62 ~WebApplicationInfo(); 61 ~WebApplicationInfo();
63 62
64 struct IconInfo { 63 struct IconInfo {
65 GURL url; 64 GURL url;
66 int width; 65 int width;
67 int height; 66 int height;
68 SkBitmap data;
69 }; 67 };
70 68
71 // URL to a manifest that defines the application. If specified, all other 69 // Title of the application. This is set from the meta tag whose name is
72 // attributes are derived from this manifest, and the manifest is the unique 70 // 'application-name'.
73 // ID of the application.
74 GURL manifest_url;
75
76 // Title of the application.
77 string16 title; 71 string16 title;
78 72
79 // Description of the application. 73 // Description of the application. This is set from the meta tag whose name
74 // is 'description'.
80 string16 description; 75 string16 description;
81 76
82 // The launch URL for the app. 77 // URL for the app. This is set from the meta tag whose name is
78 // 'application-url'.
83 GURL app_url; 79 GURL app_url;
84 80
85 // Set of available icons. 81 // Set of available icons. This is set for all link tags whose rel=icon. Only
82 // icons that have a non-zero (width and/or height) are added.
86 std::vector<IconInfo> icons; 83 std::vector<IconInfo> icons;
87
88 // The permissions the app requests. Only supported with manifest-based apps.
89 std::vector<std::string> permissions;
90
91 // Set of URLs that comprise the app. Only supported with manifest-based apps.
92 // All these must be of the same origin as manifest_url.
93 std::vector<GURL> urls;
94 }; 84 };
95 85
96 // Parses the icon's size attribute as defined in the HTML 5 spec. Returns true 86 // Parses the icon's size attribute as defined in the HTML 5 spec. Returns true
97 // on success, false on errors. On success either all the sizes specified in 87 // on success, false on errors. On success either all the sizes specified in
98 // the attribute are added to sizes, or is_any is set to true. 88 // the attribute are added to sizes, or is_any is set to true.
99 // 89 //
100 // You shouldn't have a need to invoke this directly, it's public for testing. 90 // You shouldn't have a need to invoke this directly, it's public for testing.
101 bool ParseIconSizes(const string16& text, 91 bool ParseIconSizes(const string16& text,
102 std::vector<gfx::Size>* sizes, 92 std::vector<gfx::Size>* sizes,
103 bool* is_any); 93 bool* is_any);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // with a value of |attribute_value| in |meta_elements|. 132 // with a value of |attribute_value| in |meta_elements|.
143 void GetMetaElementsWithAttribute( 133 void GetMetaElementsWithAttribute(
144 WebKit::WebDocument* document, 134 WebKit::WebDocument* document,
145 const string16& attribute_name, 135 const string16& attribute_name,
146 const string16& atribute_value, 136 const string16& atribute_value,
147 std::vector<WebKit::WebElement>* meta_elements); 137 std::vector<WebKit::WebElement>* meta_elements);
148 138
149 } // namespace webkit_glue 139 } // namespace webkit_glue
150 140
151 #endif // WEBKIT_GLUE_DOM_OPERATIONS_H__ 141 #endif // WEBKIT_GLUE_DOM_OPERATIONS_H__
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698