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

Side by Side Diff: Source/WebCore/plugins/PluginViewBase.h

Issue 13544008: Remove PlatformWidget references (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual bool supportsKeyboardFocus() const { return false; } 73 virtual bool supportsKeyboardFocus() const { return false; }
74 virtual bool canProcessDrag() const { return false; } 74 virtual bool canProcessDrag() const { return false; }
75 75
76 virtual bool shouldAlwaysAutoStart() const { return false; } 76 virtual bool shouldAlwaysAutoStart() const { return false; }
77 77
78 virtual bool shouldAllowNavigationFromDrags() const { return false; } 78 virtual bool shouldAllowNavigationFromDrags() const { return false; }
79 79
80 virtual bool isPluginViewBase() const { return true; } 80 virtual bool isPluginViewBase() const { return true; }
81 81
82 protected: 82 protected:
83 explicit PluginViewBase(PlatformWidget widget = 0) : Widget(widget) { } 83 PluginViewBase() : Widget() { }
84 }; 84 };
85 85
86 inline PluginViewBase* toPluginViewBase(Widget* widget) 86 inline PluginViewBase* toPluginViewBase(Widget* widget)
87 { 87 {
88 ASSERT(!widget || widget->isPluginViewBase()); 88 ASSERT(!widget || widget->isPluginViewBase());
89 return static_cast<PluginViewBase*>(widget); 89 return static_cast<PluginViewBase*>(widget);
90 } 90 }
91 91
92 inline const PluginViewBase* toPluginViewBase(const Widget* widget) 92 inline const PluginViewBase* toPluginViewBase(const Widget* widget)
93 { 93 {
94 ASSERT(!widget || widget->isPluginViewBase()); 94 ASSERT(!widget || widget->isPluginViewBase());
95 return static_cast<const PluginViewBase*>(widget); 95 return static_cast<const PluginViewBase*>(widget);
96 } 96 }
97 97
98 // This will catch anyone doing an unnecessary cast. 98 // This will catch anyone doing an unnecessary cast.
99 void toPluginViewBase(const PluginViewBase*); 99 void toPluginViewBase(const PluginViewBase*);
100 100
101 } // namespace WebCore 101 } // namespace WebCore
102 102
103 #endif // PluginWidget_h 103 #endif // PluginWidget_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698