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

Side by Side Diff: Source/core/platform/Widget.h

Issue 23618022: BrowserPlugin/WebView - Move plugin lifetime to DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Cleaned up. Created 7 years, 2 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) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2008 Collabora Ltd. All rights reserved. 3 * Copyright (C) 2008 Collabora Ltd. All rights reserved.
4 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013 Google Inc. 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.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 virtual void hide() { } 80 virtual void hide() { }
81 bool isSelfVisible() const { return m_selfVisible; } // Whether or not we ha ve been explicitly marked as visible or not. 81 bool isSelfVisible() const { return m_selfVisible; } // Whether or not we ha ve been explicitly marked as visible or not.
82 bool isParentVisible() const { return m_parentVisible; } // Whether or not o ur parent is visible. 82 bool isParentVisible() const { return m_parentVisible; } // Whether or not o ur parent is visible.
83 bool isVisible() const { return m_selfVisible && m_parentVisible; } // Wheth er or not we are actually visible. 83 bool isVisible() const { return m_selfVisible && m_parentVisible; } // Wheth er or not we are actually visible.
84 virtual void setParentVisible(bool visible) { m_parentVisible = visible; } 84 virtual void setParentVisible(bool visible) { m_parentVisible = visible; }
85 void setSelfVisible(bool v) { m_selfVisible = v; } 85 void setSelfVisible(bool v) { m_selfVisible = v; }
86 86
87 virtual bool isFrameView() const { return false; } 87 virtual bool isFrameView() const { return false; }
88 virtual bool isPluginView() const { return false; } 88 virtual bool isPluginView() const { return false; }
89 virtual bool isPluginContainer() const { return false; } 89 virtual bool isPluginContainer() const { return false; }
90 virtual bool pluginShouldPersist() const { return false; }
90 virtual bool isScrollbar() const { return false; } 91 virtual bool isScrollbar() const { return false; }
91 virtual bool isScrollView() const { return false; } 92 virtual bool isScrollView() const { return false; }
92 93
93 void removeFromParent(); 94 void removeFromParent();
94 virtual void setParent(ScrollView* view); 95 virtual void setParent(ScrollView* view);
95 ScrollView* parent() const { return m_parent; } 96 ScrollView* parent() const { return m_parent; }
96 ScrollView* root() const; 97 ScrollView* root() const;
97 98
98 virtual void handleEvent(Event*) { } 99 virtual void handleEvent(Event*) { }
99 100
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 private: 137 private:
137 ScrollView* m_parent; 138 ScrollView* m_parent;
138 IntRect m_frame; 139 IntRect m_frame;
139 bool m_selfVisible; 140 bool m_selfVisible;
140 bool m_parentVisible; 141 bool m_parentVisible;
141 }; 142 };
142 143
143 } // namespace WebCore 144 } // namespace WebCore
144 145
145 #endif // Widget_h 146 #endif // Widget_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698