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 25 matching lines...) Expand all Loading... | |
| 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 "platform/Supplementable.h" | 38 #include "platform/Supplementable.h" |
| 39 #include "platform/geometry/LayoutRect.h" | 39 #include "platform/geometry/LayoutRect.h" |
| 40 #include "platform/geometry/Region.h" | 40 #include "platform/geometry/Region.h" |
| 41 #include "platform/heap/Handle.h" | 41 #include "platform/heap/Handle.h" |
| 42 #include "platform/wtf/Forward.h" | 42 #include "platform/wtf/Forward.h" |
| 43 #include "platform/wtf/HashSet.h" | 43 #include "platform/wtf/HashSet.h" |
| 44 #include "platform/wtf/Noncopyable.h" | 44 #include "platform/wtf/Noncopyable.h" |
| 45 #include "platform/wtf/text/WTFString.h" | 45 #include "platform/wtf/text/WTFString.h" |
| 46 #include "public/web/WebWindowFeatures.h" | |
|
dcheng
2017/06/02 18:46:22
I'm not actually sure what the rules are on #inclu
Nate Chapin
2017/06/02 20:20:23
kinuko suggested it in https://codereview.chromium
| |
| 46 | 47 |
| 47 namespace blink { | 48 namespace blink { |
| 48 | 49 |
| 49 class AutoscrollController; | 50 class AutoscrollController; |
| 50 class BrowserControls; | 51 class BrowserControls; |
| 51 class ChromeClient; | 52 class ChromeClient; |
| 52 class ClientRectList; | 53 class ClientRectList; |
| 53 class ContextMenuClient; | 54 class ContextMenuClient; |
| 54 class ContextMenuController; | 55 class ContextMenuController; |
| 55 class Document; | 56 class Document; |
| (...skipping 122 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 WebWindowFeatures& features) { | |
| 190 window_features_ = features; | |
| 191 } | |
| 192 const WebWindowFeatures& GetWindowFeatures() const { | |
| 193 return window_features_; | |
| 194 } | |
| 195 | |
| 188 PageScaleConstraintsSet& GetPageScaleConstraintsSet(); | 196 PageScaleConstraintsSet& GetPageScaleConstraintsSet(); |
| 189 const PageScaleConstraintsSet& GetPageScaleConstraintsSet() const; | 197 const PageScaleConstraintsSet& GetPageScaleConstraintsSet() const; |
| 190 | 198 |
| 191 BrowserControls& GetBrowserControls(); | 199 BrowserControls& GetBrowserControls(); |
| 192 const BrowserControls& GetBrowserControls() const; | 200 const BrowserControls& GetBrowserControls() const; |
| 193 | 201 |
| 194 ConsoleMessageStorage& GetConsoleMessageStorage(); | 202 ConsoleMessageStorage& GetConsoleMessageStorage(); |
| 195 const ConsoleMessageStorage& GetConsoleMessageStorage() const; | 203 const ConsoleMessageStorage& GetConsoleMessageStorage() const; |
| 196 | 204 |
| 197 EventHandlerRegistry& GetEventHandlerRegistry(); | 205 EventHandlerRegistry& GetEventHandlerRegistry(); |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 326 | 334 |
| 327 Member<PluginData> plugin_data_; | 335 Member<PluginData> plugin_data_; |
| 328 | 336 |
| 329 EditorClient* const editor_client_; | 337 EditorClient* const editor_client_; |
| 330 SpellCheckerClient* const spell_checker_client_; | 338 SpellCheckerClient* const spell_checker_client_; |
| 331 Member<ValidationMessageClient> validation_message_client_; | 339 Member<ValidationMessageClient> validation_message_client_; |
| 332 | 340 |
| 333 UseCounter use_counter_; | 341 UseCounter use_counter_; |
| 334 Deprecation deprecation_; | 342 Deprecation deprecation_; |
| 335 HostsUsingFeatures hosts_using_features_; | 343 HostsUsingFeatures hosts_using_features_; |
| 344 WebWindowFeatures window_features_; | |
| 336 | 345 |
| 337 bool opened_by_dom_; | 346 bool opened_by_dom_; |
| 338 // Set to true when window.close() has been called and the Page will be | 347 // 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 | 348 // destroyed. The browsing contexts in this page should no longer be |
| 340 // discoverable via JS. | 349 // discoverable via JS. |
| 341 // TODO(dcheng): Try to remove |DOMWindow::m_windowIsClosing| in favor of | 350 // TODO(dcheng): Try to remove |DOMWindow::m_windowIsClosing| in favor of |
| 342 // this. However, this depends on resolving https://crbug.com/674641 | 351 // this. However, this depends on resolving https://crbug.com/674641 |
| 343 bool is_closing_; | 352 bool is_closing_; |
| 344 | 353 |
| 345 bool tab_key_cycles_through_elements_; | 354 bool tab_key_cycles_through_elements_; |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 356 #endif | 365 #endif |
| 357 | 366 |
| 358 int subframe_count_; | 367 int subframe_count_; |
| 359 }; | 368 }; |
| 360 | 369 |
| 361 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Page>; | 370 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Page>; |
| 362 | 371 |
| 363 } // namespace blink | 372 } // namespace blink |
| 364 | 373 |
| 365 #endif // Page_h | 374 #endif // Page_h |
| OLD | NEW |