Chromium Code Reviews| 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 17 matching lines...) Expand all Loading... | |
| 28 #include "core/frame/Deprecation.h" | 28 #include "core/frame/Deprecation.h" |
| 29 #include "core/frame/HostsUsingFeatures.h" | 29 #include "core/frame/HostsUsingFeatures.h" |
| 30 #include "core/frame/LocalFrame.h" | 30 #include "core/frame/LocalFrame.h" |
| 31 #include "core/frame/SettingsDelegate.h" | 31 #include "core/frame/SettingsDelegate.h" |
| 32 #include "core/frame/UseCounter.h" | 32 #include "core/frame/UseCounter.h" |
| 33 #include "core/page/Page.h" | 33 #include "core/page/Page.h" |
| 34 #include "core/page/PageAnimator.h" | 34 #include "core/page/PageAnimator.h" |
| 35 #include "core/page/PageVisibilityNotifier.h" | 35 #include "core/page/PageVisibilityNotifier.h" |
| 36 #include "core/page/PageVisibilityObserver.h" | 36 #include "core/page/PageVisibilityObserver.h" |
| 37 #include "core/page/PageVisibilityState.h" | 37 #include "core/page/PageVisibilityState.h" |
| 38 #include "core/page/WindowFeatures.h" | |
| 38 #include "platform/Supplementable.h" | 39 #include "platform/Supplementable.h" |
| 39 #include "platform/geometry/LayoutRect.h" | 40 #include "platform/geometry/LayoutRect.h" |
| 40 #include "platform/geometry/Region.h" | 41 #include "platform/geometry/Region.h" |
| 41 #include "platform/heap/Handle.h" | 42 #include "platform/heap/Handle.h" |
| 42 #include "platform/wtf/Forward.h" | 43 #include "platform/wtf/Forward.h" |
| 43 #include "platform/wtf/HashSet.h" | 44 #include "platform/wtf/HashSet.h" |
| 44 #include "platform/wtf/Noncopyable.h" | 45 #include "platform/wtf/Noncopyable.h" |
| 45 #include "platform/wtf/text/WTFString.h" | 46 #include "platform/wtf/text/WTFString.h" |
| 46 | 47 |
| 47 namespace blink { | 48 namespace blink { |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 178 ScrollingCoordinator* GetScrollingCoordinator(); | 179 ScrollingCoordinator* GetScrollingCoordinator(); |
| 179 | 180 |
| 180 ClientRectList* NonFastScrollableRects(const LocalFrame*); | 181 ClientRectList* NonFastScrollableRects(const LocalFrame*); |
| 181 | 182 |
| 182 Settings& GetSettings() const { return *settings_; } | 183 Settings& GetSettings() const { return *settings_; } |
| 183 | 184 |
| 184 UseCounter& GetUseCounter() { return use_counter_; } | 185 UseCounter& GetUseCounter() { return use_counter_; } |
| 185 Deprecation& GetDeprecation() { return deprecation_; } | 186 Deprecation& GetDeprecation() { return deprecation_; } |
| 186 HostsUsingFeatures& GetHostsUsingFeatures() { return hosts_using_features_; } | 187 HostsUsingFeatures& GetHostsUsingFeatures() { return hosts_using_features_; } |
| 187 | 188 |
| 189 void SetWindowFeatures(const WindowFeatures& features) { | |
| 190 window_features_ = features; | |
| 191 } | |
| 192 const WindowFeatures& GetWindowFeatures() const { return window_features_; } | |
| 193 | |
| 188 PageScaleConstraintsSet& GetPageScaleConstraintsSet(); | 194 PageScaleConstraintsSet& GetPageScaleConstraintsSet(); |
| 189 const PageScaleConstraintsSet& GetPageScaleConstraintsSet() const; | 195 const PageScaleConstraintsSet& GetPageScaleConstraintsSet() const; |
| 190 | 196 |
| 191 BrowserControls& GetBrowserControls(); | 197 BrowserControls& GetBrowserControls(); |
| 192 const BrowserControls& GetBrowserControls() const; | 198 const BrowserControls& GetBrowserControls() const; |
| 193 | 199 |
| 194 ConsoleMessageStorage& GetConsoleMessageStorage(); | 200 ConsoleMessageStorage& GetConsoleMessageStorage(); |
| 195 const ConsoleMessageStorage& GetConsoleMessageStorage() const; | 201 const ConsoleMessageStorage& GetConsoleMessageStorage() const; |
| 196 | 202 |
| 197 EventHandlerRegistry& GetEventHandlerRegistry(); | 203 EventHandlerRegistry& GetEventHandlerRegistry(); |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 326 | 332 |
| 327 Member<PluginData> plugin_data_; | 333 Member<PluginData> plugin_data_; |
| 328 | 334 |
| 329 EditorClient* const editor_client_; | 335 EditorClient* const editor_client_; |
| 330 SpellCheckerClient* const spell_checker_client_; | 336 SpellCheckerClient* const spell_checker_client_; |
| 331 Member<ValidationMessageClient> validation_message_client_; | 337 Member<ValidationMessageClient> validation_message_client_; |
| 332 | 338 |
| 333 UseCounter use_counter_; | 339 UseCounter use_counter_; |
| 334 Deprecation deprecation_; | 340 Deprecation deprecation_; |
| 335 HostsUsingFeatures hosts_using_features_; | 341 HostsUsingFeatures hosts_using_features_; |
| 342 WindowFeatures window_features_; | |
|
Nate Chapin
2017/05/31 16:55:13
Rather than storing the WindowFeatures in web/ and
| |
| 336 | 343 |
| 337 bool opened_by_dom_; | 344 bool opened_by_dom_; |
| 338 // Set to true when window.close() has been called and the Page will be | 345 // Set to true when window.close() has been called and the Page will be |
| 339 // destroyed. The browsing contexts in this page should no longer be | 346 // destroyed. The browsing contexts in this page should no longer be |
| 340 // discoverable via JS. | 347 // discoverable via JS. |
| 341 // TODO(dcheng): Try to remove |DOMWindow::m_windowIsClosing| in favor of | 348 // TODO(dcheng): Try to remove |DOMWindow::m_windowIsClosing| in favor of |
| 342 // this. However, this depends on resolving https://crbug.com/674641 | 349 // this. However, this depends on resolving https://crbug.com/674641 |
| 343 bool is_closing_; | 350 bool is_closing_; |
| 344 | 351 |
| 345 bool tab_key_cycles_through_elements_; | 352 bool tab_key_cycles_through_elements_; |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 356 #endif | 363 #endif |
| 357 | 364 |
| 358 int subframe_count_; | 365 int subframe_count_; |
| 359 }; | 366 }; |
| 360 | 367 |
| 361 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Page>; | 368 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Page>; |
| 362 | 369 |
| 363 } // namespace blink | 370 } // namespace blink |
| 364 | 371 |
| 365 #endif // Page_h | 372 #endif // Page_h |
| OLD | NEW |