OLD | NEW |
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 #ifndef EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ | 5 #ifndef EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ |
6 #define EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ | 6 #define EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "content/public/common/console_message_level.h" | 10 #include "content/public/common/console_message_level.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 // RenderViewObserver implementation. | 33 // RenderViewObserver implementation. |
34 bool OnMessageReceived(const IPC::Message& message) override; | 34 bool OnMessageReceived(const IPC::Message& message) override; |
35 void DidCreateDocumentElement(blink::WebLocalFrame* frame) override; | 35 void DidCreateDocumentElement(blink::WebLocalFrame* frame) override; |
36 void DidMatchCSS( | 36 void DidMatchCSS( |
37 blink::WebLocalFrame* frame, | 37 blink::WebLocalFrame* frame, |
38 const blink::WebVector<blink::WebString>& newly_matching_selectors, | 38 const blink::WebVector<blink::WebString>& newly_matching_selectors, |
39 const blink::WebVector<blink::WebString>& stopped_matching_selectors) | 39 const blink::WebVector<blink::WebString>& stopped_matching_selectors) |
40 override; | 40 override; |
41 void DraggableRegionsChanged(blink::WebFrame* frame) override; | 41 void DraggableRegionsChanged(blink::WebFrame* frame) override; |
42 | 42 |
43 void OnAddMessageToConsole(content::ConsoleMessageLevel level, | |
44 const std::string& message); | |
45 void OnAppWindowClosed(); | 43 void OnAppWindowClosed(); |
46 void OnSetFrameName(const std::string& name); | 44 void OnSetFrameName(const std::string& name); |
47 | 45 |
48 Dispatcher* dispatcher_; | 46 Dispatcher* dispatcher_; |
49 | 47 |
50 // Id number of browser window which RenderView is attached to. | 48 // Id number of browser window which RenderView is attached to. |
51 int browser_window_id_; | 49 int browser_window_id_; |
52 | 50 |
53 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); | 51 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); |
54 }; | 52 }; |
55 | 53 |
56 } // namespace extensions | 54 } // namespace extensions |
57 | 55 |
58 #endif // EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ | 56 #endif // EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ |
OLD | NEW |