OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights |
3 * reserved. | 3 * reserved. |
4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. | 4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. |
5 * (http://www.torchmobile.com/) | 5 * (http://www.torchmobile.com/) |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 static PageSet& OrdinaryPages(); | 125 static PageSet& OrdinaryPages(); |
126 | 126 |
127 static void PlatformColorsChanged(); | 127 static void PlatformColorsChanged(); |
128 | 128 |
129 void SetNeedsRecalcStyleInAllFrames(); | 129 void SetNeedsRecalcStyleInAllFrames(); |
130 void UpdateAcceleratedCompositingSettings(); | 130 void UpdateAcceleratedCompositingSettings(); |
131 | 131 |
132 ViewportDescription GetViewportDescription() const; | 132 ViewportDescription GetViewportDescription() const; |
133 | 133 |
134 static void RefreshPlugins(); | 134 static void RefreshPlugins(); |
135 PluginData* GetPluginData(SecurityOrigin* main_frame_origin) const; | 135 PluginData* GetPluginData(SecurityOrigin* main_frame_origin); |
136 | 136 |
137 EditorClient& GetEditorClient() const { return *editor_client_; } | 137 EditorClient& GetEditorClient() const { return *editor_client_; } |
138 SpellCheckerClient& GetSpellCheckerClient() const { | 138 SpellCheckerClient& GetSpellCheckerClient() const { |
139 return *spell_checker_client_; | 139 return *spell_checker_client_; |
140 } | 140 } |
141 | 141 |
142 void SetMainFrame(Frame*); | 142 void SetMainFrame(Frame*); |
143 Frame* MainFrame() const { return main_frame_; } | 143 Frame* MainFrame() const { return main_frame_; } |
144 // Escape hatch for existing code that assumes that the root frame is | 144 // Escape hatch for existing code that assumes that the root frame is |
145 // always a LocalFrame. With OOPI, this is not always the case. Code that | 145 // always a LocalFrame. With OOPI, this is not always the case. Code that |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 // | 317 // |
318 // However, there are several locations (InspectorOverlay, SVGImage, and | 318 // However, there are several locations (InspectorOverlay, SVGImage, and |
319 // WebPagePopupImpl) which don't hold a reference to the main frame at all | 319 // WebPagePopupImpl) which don't hold a reference to the main frame at all |
320 // after creating it. These are still safe because they always create a | 320 // after creating it. These are still safe because they always create a |
321 // Frame with a FrameView. FrameView and Frame hold references to each | 321 // Frame with a FrameView. FrameView and Frame hold references to each |
322 // other, thus keeping each other alive. The call to willBeDestroyed() | 322 // other, thus keeping each other alive. The call to willBeDestroyed() |
323 // breaks this cycle, so the frame is still properly destroyed once no | 323 // breaks this cycle, so the frame is still properly destroyed once no |
324 // longer needed. | 324 // longer needed. |
325 Member<Frame> main_frame_; | 325 Member<Frame> main_frame_; |
326 | 326 |
327 mutable RefPtr<PluginData> plugin_data_; | 327 Member<PluginData> plugin_data_; |
328 | 328 |
329 EditorClient* const editor_client_; | 329 EditorClient* const editor_client_; |
330 SpellCheckerClient* const spell_checker_client_; | 330 SpellCheckerClient* const spell_checker_client_; |
331 Member<ValidationMessageClient> validation_message_client_; | 331 Member<ValidationMessageClient> validation_message_client_; |
332 | 332 |
333 UseCounter use_counter_; | 333 UseCounter use_counter_; |
334 Deprecation deprecation_; | 334 Deprecation deprecation_; |
335 HostsUsingFeatures hosts_using_features_; | 335 HostsUsingFeatures hosts_using_features_; |
336 | 336 |
337 bool opened_by_dom_; | 337 bool opened_by_dom_; |
(...skipping 18 matching lines...) Expand all Loading... |
356 #endif | 356 #endif |
357 | 357 |
358 int subframe_count_; | 358 int subframe_count_; |
359 }; | 359 }; |
360 | 360 |
361 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Page>; | 361 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Page>; |
362 | 362 |
363 } // namespace blink | 363 } // namespace blink |
364 | 364 |
365 #endif // Page_h | 365 #endif // Page_h |
OLD | NEW |