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

Side by Side Diff: third_party/WebKit/Source/core/plugins/PluginView.h

Issue 1756343002: Revert of Extract webkit_unit_tests from blink_web component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | third_party/WebKit/Source/modules/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * Copyright (C) 2014 Opera Software ASA. All rights reserved. 4 * Copyright (C) 2014 Opera Software ASA. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright 11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the 12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution. 13 * documentation and/or other materials provided with the distribution.
14 * 14 *
15 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND AN Y 15 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND AN Y
16 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 16 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 17 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18 * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR AN Y 18 * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR AN Y
19 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 19 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 20 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND O N 21 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND O N
22 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
26 26
27 #ifndef PluginView_h 27 #ifndef PluginView_h
28 #define PluginView_h 28 #define PluginView_h
29 29
30 #include "core/CoreExport.h"
31 #include "platform/Widget.h" 30 #include "platform/Widget.h"
32 #include "platform/scroll/ScrollTypes.h" 31 #include "platform/scroll/ScrollTypes.h"
33 #include "wtf/text/WTFString.h" 32 #include "wtf/text/WTFString.h"
34 #include <v8.h> 33 #include <v8.h>
35 34
36 namespace blink { class WebLayer; } 35 namespace blink { class WebLayer; }
37 36
38 namespace blink { 37 namespace blink {
39 38
40 class ResourceError; 39 class ResourceError;
41 class ResourceResponse; 40 class ResourceResponse;
42 41
43 class CORE_EXPORT PluginView : public Widget { 42 class PluginView : public Widget {
44 public: 43 public:
45 bool isPluginView() const final { return true; } 44 bool isPluginView() const final { return true; }
46 45
47 virtual WebLayer* platformLayer() const { return 0; } 46 virtual WebLayer* platformLayer() const { return 0; }
48 virtual v8::Local<v8::Object> scriptableObject(v8::Isolate*) { return v8::Lo cal<v8::Object>(); } 47 virtual v8::Local<v8::Object> scriptableObject(v8::Isolate*) { return v8::Lo cal<v8::Object>(); }
49 virtual bool getFormValue(String&) { return false; } 48 virtual bool getFormValue(String&) { return false; }
50 virtual bool wantsWheelEvents() { return false; } 49 virtual bool wantsWheelEvents() { return false; }
51 virtual bool supportsKeyboardFocus() const { return false; } 50 virtual bool supportsKeyboardFocus() const { return false; }
52 virtual bool supportsInputMethod() const { return false; } 51 virtual bool supportsInputMethod() const { return false; }
53 virtual bool canProcessDrag() const { return false; } 52 virtual bool canProcessDrag() const { return false; }
54 53
55 virtual void didReceiveResponse(const ResourceResponse&) { } 54 virtual void didReceiveResponse(const ResourceResponse&) { }
56 virtual void didReceiveData(const char*, int) { } 55 virtual void didReceiveData(const char*, int) { }
57 56
58 virtual void layoutIfNeeded() { } 57 virtual void layoutIfNeeded() { }
59 virtual void invalidatePaintIfNeeded() { } 58 virtual void invalidatePaintIfNeeded() { }
60 59
61 protected: 60 protected:
62 PluginView() : Widget() { } 61 PluginView() : Widget() { }
63 }; 62 };
64 63
65 DEFINE_TYPE_CASTS(PluginView, Widget, widget, widget->isPluginView(), widget.isP luginView()); 64 DEFINE_TYPE_CASTS(PluginView, Widget, widget, widget->isPluginView(), widget.isP luginView());
66 65
67 } // namespace blink 66 } // namespace blink
68 67
69 #endif // PluginView_h 68 #endif // PluginView_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698