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

Side by Side Diff: Source/core/page/Page.h

Issue 40143003: Simplify SharedWorkerRepository code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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/dom/Document.cpp ('k') | Source/core/page/Page.cpp » ('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) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 class PointerLockController; 64 class PointerLockController;
65 class ProgressTracker; 65 class ProgressTracker;
66 class Range; 66 class Range;
67 class RenderBox; 67 class RenderBox;
68 class RenderObject; 68 class RenderObject;
69 class RenderTheme; 69 class RenderTheme;
70 class VisibleSelection; 70 class VisibleSelection;
71 class ScrollableArea; 71 class ScrollableArea;
72 class ScrollingCoordinator; 72 class ScrollingCoordinator;
73 class Settings; 73 class Settings;
74 class SharedWorkerRepositoryClient;
74 class StorageNamespace; 75 class StorageNamespace;
75 class ValidationMessageClient; 76 class ValidationMessageClient;
76 77
77 typedef uint64_t LinkHash; 78 typedef uint64_t LinkHash;
78 79
79 float deviceScaleFactor(Frame*); 80 float deviceScaleFactor(Frame*);
80 81
81 class Page : public Supplementable<Page>, public LifecycleContext { 82 class Page : public Supplementable<Page>, public LifecycleContext {
82 WTF_MAKE_NONCOPYABLE(Page); 83 WTF_MAKE_NONCOPYABLE(Page);
83 friend class Settings; 84 friend class Settings;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 140
140 Chrome& chrome() const { return *m_chrome; } 141 Chrome& chrome() const { return *m_chrome; }
141 DragCaretController& dragCaretController() const { return *m_dragCaretContro ller; } 142 DragCaretController& dragCaretController() const { return *m_dragCaretContro ller; }
142 DragController& dragController() const { return *m_dragController; } 143 DragController& dragController() const { return *m_dragController; }
143 FocusController& focusController() const { return *m_focusController; } 144 FocusController& focusController() const { return *m_focusController; }
144 ContextMenuController& contextMenuController() const { return *m_contextMenu Controller; } 145 ContextMenuController& contextMenuController() const { return *m_contextMenu Controller; }
145 InspectorController& inspectorController() const { return *m_inspectorContro ller; } 146 InspectorController& inspectorController() const { return *m_inspectorContro ller; }
146 PointerLockController& pointerLockController() const { return *m_pointerLock Controller; } 147 PointerLockController& pointerLockController() const { return *m_pointerLock Controller; }
147 ValidationMessageClient* validationMessageClient() const { return m_validati onMessageClient; } 148 ValidationMessageClient* validationMessageClient() const { return m_validati onMessageClient; }
148 void setValidationMessageClient(ValidationMessageClient* client) { m_validat ionMessageClient = client; } 149 void setValidationMessageClient(ValidationMessageClient* client) { m_validat ionMessageClient = client; }
150 SharedWorkerRepositoryClient* sharedWorkerRepositoryClient() { return m_shar edWorkerRepositoryClient; }
151 void setSharedWorkerRepositoryClient(SharedWorkerRepositoryClient* client) { m_sharedWorkerRepositoryClient = client; }
149 152
150 bool autoscrollInProgress() const; 153 bool autoscrollInProgress() const;
151 bool autoscrollInProgress(const RenderBox*) const; 154 bool autoscrollInProgress(const RenderBox*) const;
152 bool panScrollInProgress() const; 155 bool panScrollInProgress() const;
153 void startAutoscrollForSelection(RenderObject*); 156 void startAutoscrollForSelection(RenderObject*);
154 void stopAutoscrollIfNeeded(RenderObject*); 157 void stopAutoscrollIfNeeded(RenderObject*);
155 void stopAutoscrollTimer(); 158 void stopAutoscrollTimer();
156 void updateAutoscrollRenderer(); 159 void updateAutoscrollRenderer();
157 void updateDragAndDrop(Node* targetNode, const IntPoint& eventPosition, doub le eventTime); 160 void updateDragAndDrop(Node* targetNode, const IntPoint& eventPosition, doub le eventTime);
158 #if OS(WIN) 161 #if OS(WIN)
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 const OwnPtr<Settings> m_settings; 268 const OwnPtr<Settings> m_settings;
266 const OwnPtr<ProgressTracker> m_progress; 269 const OwnPtr<ProgressTracker> m_progress;
267 270
268 RefPtr<Frame> m_mainFrame; 271 RefPtr<Frame> m_mainFrame;
269 272
270 mutable RefPtr<PluginData> m_pluginData; 273 mutable RefPtr<PluginData> m_pluginData;
271 274
272 BackForwardClient* m_backForwardClient; 275 BackForwardClient* m_backForwardClient;
273 EditorClient* const m_editorClient; 276 EditorClient* const m_editorClient;
274 ValidationMessageClient* m_validationMessageClient; 277 ValidationMessageClient* m_validationMessageClient;
278 SharedWorkerRepositoryClient* m_sharedWorkerRepositoryClient;
275 279
276 UseCounter m_useCounter; 280 UseCounter m_useCounter;
277 281
278 int m_subframeCount; 282 int m_subframeCount;
279 bool m_openedByDOM; 283 bool m_openedByDOM;
280 284
281 bool m_tabKeyCyclesThroughElements; 285 bool m_tabKeyCyclesThroughElements;
282 bool m_defersLoading; 286 bool m_defersLoading;
283 287
284 float m_pageScaleFactor; 288 float m_pageScaleFactor;
(...skipping 19 matching lines...) Expand all
304 #endif 308 #endif
305 309
306 const OwnPtr<PageConsole> m_console; 310 const OwnPtr<PageConsole> m_console;
307 311
308 HashSet<MultisamplingChangedObserver*> m_multisamplingChangedObservers; 312 HashSet<MultisamplingChangedObserver*> m_multisamplingChangedObservers;
309 }; 313 };
310 314
311 } // namespace WebCore 315 } // namespace WebCore
312 316
313 #endif // Page_h 317 #endif // Page_h
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698