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

Side by Side Diff: components/plugins/renderer/plugin_placeholder.h

Issue 2733083004: Emit error events if the loading of an object element failed (Closed)
Patch Set: Emit error events if the loading of an object element failed Created 3 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_PLUGINS_RENDERER_PLUGIN_PLACEHOLDER_H_ 5 #ifndef COMPONENTS_PLUGINS_RENDERER_PLUGIN_PLACEHOLDER_H_
6 #define COMPONENTS_PLUGINS_RENDERER_PLUGIN_PLACEHOLDER_H_ 6 #define COMPONENTS_PLUGINS_RENDERER_PLUGIN_PLACEHOLDER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "components/plugins/renderer/webview_plugin.h" 10 #include "components/plugins/renderer/webview_plugin.h"
(...skipping 22 matching lines...) Expand all
33 33
34 protected: 34 protected:
35 blink::WebLocalFrame* GetFrame(); 35 blink::WebLocalFrame* GetFrame();
36 const blink::WebPluginParams& GetPluginParams() const; 36 const blink::WebPluginParams& GetPluginParams() const;
37 37
38 // WebViewPlugin::Delegate methods: 38 // WebViewPlugin::Delegate methods:
39 void ShowContextMenu(const blink::WebMouseEvent&) override; 39 void ShowContextMenu(const blink::WebMouseEvent&) override;
40 void PluginDestroyed() override; 40 void PluginDestroyed() override;
41 v8::Local<v8::Object> GetV8ScriptableObject( 41 v8::Local<v8::Object> GetV8ScriptableObject(
42 v8::Isolate* isolate) const override; 42 v8::Isolate* isolate) const override;
43 bool IsErrorPlaceholder() override;
43 44
44 protected: 45 protected:
45 // Hide this placeholder. 46 // Hide this placeholder.
46 void HidePlugin(); 47 void HidePlugin();
47 bool hidden() { return hidden_; } 48 bool hidden() { return hidden_; }
48 49
49 // JavaScript callbacks: 50 // JavaScript callbacks:
50 void HideCallback(); 51 void HideCallback();
51 52
52 private: 53 private:
(...skipping 26 matching lines...) Expand all
79 v8::Local<v8::Value> GetV8Handle(v8::Isolate* isolate) final; 80 v8::Local<v8::Value> GetV8Handle(v8::Isolate* isolate) final;
80 81
81 // gin::Wrappable method: 82 // gin::Wrappable method:
82 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( 83 gin::ObjectTemplateBuilder GetObjectTemplateBuilder(
83 v8::Isolate* isolate) override; 84 v8::Isolate* isolate) override;
84 }; 85 };
85 86
86 } // namespace plugins 87 } // namespace plugins
87 88
88 #endif // COMPONENTS_PLUGINS_RENDERER_PLUGIN_PLACEHOLDER_H_ 89 #endif // COMPONENTS_PLUGINS_RENDERER_PLUGIN_PLACEHOLDER_H_
OLDNEW
« no previous file with comments | « components/plugins/renderer/loadable_plugin_placeholder.cc ('k') | components/plugins/renderer/plugin_placeholder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698