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

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

Issue 23618022: BrowserPlugin/WebView - Move plugin lifetime to DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Handle shared-renderer case. Created 6 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
« no previous file with comments | « Source/core/rendering/RenderWidget.cpp ('k') | Source/web/FrameLoaderClientImpl.h » ('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) 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 bool isSelfVisible() const { return m_selfVisible; } // Whether or not we ha ve been explicitly marked as visible or not. 79 bool isSelfVisible() const { return m_selfVisible; } // Whether or not we ha ve been explicitly marked as visible or not.
80 bool isParentVisible() const { return m_parentVisible; } // Whether or not o ur parent is visible. 80 bool isParentVisible() const { return m_parentVisible; } // Whether or not o ur parent is visible.
81 bool isVisible() const { return m_selfVisible && m_parentVisible; } // Wheth er or not we are actually visible. 81 bool isVisible() const { return m_selfVisible && m_parentVisible; } // Wheth er or not we are actually visible.
82 virtual void setParentVisible(bool visible) { m_parentVisible = visible; } 82 virtual void setParentVisible(bool visible) { m_parentVisible = visible; }
83 void setSelfVisible(bool v) { m_selfVisible = v; } 83 void setSelfVisible(bool v) { m_selfVisible = v; }
84 84
85 virtual bool isFrameView() const { return false; } 85 virtual bool isFrameView() const { return false; }
86 virtual bool isRemoteFrameView() const { return false; } 86 virtual bool isRemoteFrameView() const { return false; }
87 virtual bool isPluginView() const { return false; } 87 virtual bool isPluginView() const { return false; }
88 virtual bool isPluginContainer() const { return false; } 88 virtual bool isPluginContainer() const { return false; }
89 virtual bool pluginShouldPersist() const { return false; }
89 virtual bool isScrollbar() const { return false; } 90 virtual bool isScrollbar() const { return false; }
90 virtual bool isScrollView() const { return false; } 91 virtual bool isScrollView() const { return false; }
91 92
92 virtual HostWindow* hostWindow() const { ASSERT_NOT_REACHED(); return 0; } 93 virtual HostWindow* hostWindow() const { ASSERT_NOT_REACHED(); return 0; }
93 virtual void setParent(Widget*); 94 virtual void setParent(Widget*);
94 Widget* parent() const { return m_parent; } 95 Widget* parent() const { return m_parent; }
95 Widget* root() const; 96 Widget* root() const;
96 97
97 virtual void handleEvent(Event*) { } 98 virtual void handleEvent(Event*) { }
98 99
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 private: 134 private:
134 Widget* m_parent; 135 Widget* m_parent;
135 IntRect m_frame; 136 IntRect m_frame;
136 bool m_selfVisible; 137 bool m_selfVisible;
137 bool m_parentVisible; 138 bool m_parentVisible;
138 }; 139 };
139 140
140 } // namespace WebCore 141 } // namespace WebCore
141 142
142 #endif // Widget_h 143 #endif // Widget_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderWidget.cpp ('k') | Source/web/FrameLoaderClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698