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

Side by Side Diff: extensions/common/extension_messages.h

Issue 226043005: Fix webview.executeScript API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update InsertCss API. Created 6 years, 8 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
« no previous file with comments | « chrome/test/data/extensions/platform_apps/web_view/shim/main.js ('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 2014 The Chromium Authors. All rights reserved. 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 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 // IPC messages for extensions. 5 // IPC messages for extensions.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // The ID of the requesting extension. To know which isolated world to 103 // The ID of the requesting extension. To know which isolated world to
104 // execute the code inside of. 104 // execute the code inside of.
105 IPC_STRUCT_MEMBER(std::string, extension_id) 105 IPC_STRUCT_MEMBER(std::string, extension_id)
106 106
107 // Whether the code is JavaScript or CSS. 107 // Whether the code is JavaScript or CSS.
108 IPC_STRUCT_MEMBER(bool, is_javascript) 108 IPC_STRUCT_MEMBER(bool, is_javascript)
109 109
110 // String of code to execute. 110 // String of code to execute.
111 IPC_STRUCT_MEMBER(std::string, code) 111 IPC_STRUCT_MEMBER(std::string, code)
112 112
113 // The webview guest source who calls to execute code.
114 IPC_STRUCT_MEMBER(GURL, webview_src)
115
113 // Whether to inject into all frames, or only the root frame. 116 // Whether to inject into all frames, or only the root frame.
114 IPC_STRUCT_MEMBER(bool, all_frames) 117 IPC_STRUCT_MEMBER(bool, all_frames)
115 118
116 // When to inject the code. 119 // When to inject the code.
117 IPC_STRUCT_MEMBER(int, run_at) 120 IPC_STRUCT_MEMBER(int, run_at)
118 121
119 // Whether to execute code in the main world (as opposed to an isolated 122 // Whether to execute code in the main world (as opposed to an isolated
120 // world). 123 // world).
121 IPC_STRUCT_MEMBER(bool, in_main_world) 124 IPC_STRUCT_MEMBER(bool, in_main_world)
122 125
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 // certain conditions. This message is sent in response to several events: 628 // certain conditions. This message is sent in response to several events:
626 // 629 //
627 // * ExtensionMsg_WatchPages was received, updating the set of conditions. 630 // * ExtensionMsg_WatchPages was received, updating the set of conditions.
628 // * A new page is loaded. This will be sent after 631 // * A new page is loaded. This will be sent after
629 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the 632 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the
630 // main frame. 633 // main frame.
631 // * Something changed on an existing frame causing the set of matching searches 634 // * Something changed on an existing frame causing the set of matching searches
632 // to change. 635 // to change.
633 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, 636 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange,
634 std::vector<std::string> /* Matching CSS selectors */) 637 std::vector<std::string> /* Matching CSS selectors */)
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/platform_apps/web_view/shim/main.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698