| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 ContextMenuClient* context_menu_client; | 103 ContextMenuClient* context_menu_client; |
| 104 EditorClient* editor_client; | 104 EditorClient* editor_client; |
| 105 SpellCheckerClient* spell_checker_client; | 105 SpellCheckerClient* spell_checker_client; |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 static Page* Create(PageClients& page_clients) { | 108 static Page* Create(PageClients& page_clients) { |
| 109 return new Page(page_clients); | 109 return new Page(page_clients); |
| 110 } | 110 } |
| 111 | 111 |
| 112 // An "ordinary" page is a fully-featured page owned by a web view. | 112 // An "ordinary" page is a fully-featured page owned by a web view. |
| 113 static Page* CreateOrdinary(PageClients&); | 113 static Page* CreateOrdinary(PageClients&, Page* opener); |
| 114 | 114 |
| 115 ~Page() override; | 115 ~Page() override; |
| 116 | 116 |
| 117 void CloseSoon(); | 117 void CloseSoon(); |
| 118 bool IsClosing() const { return is_closing_; } | 118 bool IsClosing() const { return is_closing_; } |
| 119 | 119 |
| 120 using PageSet = PersistentHeapHashSet<WeakMember<Page>>; | 120 using PageSet = PersistentHeapHashSet<WeakMember<Page>>; |
| 121 | 121 |
| 122 // Return the current set of full-fledged, ordinary pages. | 122 // Return the current set of full-fledged, ordinary pages. |
| 123 // Each created and owned by a WebView. | 123 // Each created and owned by a WebView. |
| 124 // | 124 // |
| 125 // This set does not include Pages created for other, internal purposes | 125 // This set does not include Pages created for other, internal purposes |
| 126 // (SVGImages, inspector overlays, page popups etc.) | 126 // (SVGImages, inspector overlays, page popups etc.) |
| 127 static PageSet& OrdinaryPages(); | 127 static PageSet& OrdinaryPages(); |
| 128 | 128 |
| 129 // Returns pages related to the current browsing context (excluding the |
| 130 // current page). See also |
| 131 // https://html.spec.whatwg.org/multipage/browsers.html#unit-of-related-browsi
ng-contexts |
| 132 HeapVector<Member<Page>> RelatedPages(); |
| 133 |
| 129 static void PlatformColorsChanged(); | 134 static void PlatformColorsChanged(); |
| 130 | 135 |
| 131 void SetNeedsRecalcStyleInAllFrames(); | 136 void SetNeedsRecalcStyleInAllFrames(); |
| 132 void UpdateAcceleratedCompositingSettings(); | 137 void UpdateAcceleratedCompositingSettings(); |
| 133 | 138 |
| 134 ViewportDescription GetViewportDescription() const; | 139 ViewportDescription GetViewportDescription() const; |
| 135 | 140 |
| 136 static void RefreshPlugins(); | 141 static void RefreshPlugins(); |
| 137 PluginData* GetPluginData(SecurityOrigin* main_frame_origin); | 142 PluginData* GetPluginData(SecurityOrigin* main_frame_origin); |
| 138 | 143 |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 | 367 |
| 363 PageVisibilityState visibility_state_; | 368 PageVisibilityState visibility_state_; |
| 364 | 369 |
| 365 bool is_cursor_visible_; | 370 bool is_cursor_visible_; |
| 366 | 371 |
| 367 #if DCHECK_IS_ON() | 372 #if DCHECK_IS_ON() |
| 368 bool is_painting_ = false; | 373 bool is_painting_ = false; |
| 369 #endif | 374 #endif |
| 370 | 375 |
| 371 int subframe_count_; | 376 int subframe_count_; |
| 377 |
| 378 // The next 2 fields form a circular, double-linked list of pages that are |
| 379 // related to the current browsing context. See also RelatedPages method. |
| 380 Member<Page> next_related_page_; |
| 381 Member<Page> prev_related_page_; |
| 372 }; | 382 }; |
| 373 | 383 |
| 374 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Page>; | 384 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Page>; |
| 375 | 385 |
| 376 } // namespace blink | 386 } // namespace blink |
| 377 | 387 |
| 378 #endif // Page_h | 388 #endif // Page_h |
| OLD | NEW |