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

Side by Side Diff: extensions/renderer/extension_helper.h

Issue 2929493003: Move handling of DraggableRegionsChanged notification from "view" to "frame". (Closed)
Patch Set: Also add main frame filtering to the browser-side. Created 3 years, 6 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
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 #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 <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "content/public/renderer/render_view_observer.h" 11 #include "content/public/renderer/render_view_observer.h"
12 12
13 namespace extensions { 13 namespace extensions {
14 class Dispatcher; 14 class Dispatcher;
15 15
16 // RenderView-level plumbing for extension features. 16 // RenderView-level plumbing for extension features.
17 class ExtensionHelper : public content::RenderViewObserver { 17 class ExtensionHelper : public content::RenderViewObserver {
18 public: 18 public:
19 ExtensionHelper(content::RenderView* render_view, Dispatcher* dispatcher); 19 ExtensionHelper(content::RenderView* render_view, Dispatcher* dispatcher);
20 ~ExtensionHelper() override; 20 ~ExtensionHelper() override;
21 21
22 private: 22 private:
23 // RenderViewObserver implementation. 23 // RenderViewObserver implementation.
24 bool OnMessageReceived(const IPC::Message& message) override; 24 bool OnMessageReceived(const IPC::Message& message) override;
25 void DraggableRegionsChanged(blink::WebFrame* frame) override;
26 void OnDestruct() override; 25 void OnDestruct() override;
27 26
28 void OnAppWindowClosed(); 27 void OnAppWindowClosed();
29 void OnSetFrameName(const std::string& name); 28 void OnSetFrameName(const std::string& name);
30 29
31 Dispatcher* dispatcher_; 30 Dispatcher* dispatcher_;
32 31
33 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); 32 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper);
34 }; 33 };
35 34
36 } // namespace extensions 35 } // namespace extensions
37 36
38 #endif // EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ 37 #endif // EXTENSIONS_RENDERER_EXTENSION_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698