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

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

Issue 225393002: Apply OwnPtr|PassOwnPtr to m_validationMessageClient and setValidationMessageClient() in Page class (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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
« no previous file with comments | « Source/core/html/forms/ValidationMessage.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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 PageAnimator& animator() { return m_animator; } 145 PageAnimator& animator() { return m_animator; }
146 Chrome& chrome() const { return *m_chrome; } 146 Chrome& chrome() const { return *m_chrome; }
147 AutoscrollController& autoscrollController() const { return *m_autoscrollCon troller; } 147 AutoscrollController& autoscrollController() const { return *m_autoscrollCon troller; }
148 DragCaretController& dragCaretController() const { return *m_dragCaretContro ller; } 148 DragCaretController& dragCaretController() const { return *m_dragCaretContro ller; }
149 DragController& dragController() const { return *m_dragController; } 149 DragController& dragController() const { return *m_dragController; }
150 FocusController& focusController() const { return *m_focusController; } 150 FocusController& focusController() const { return *m_focusController; }
151 ContextMenuController& contextMenuController() const { return *m_contextMenu Controller; } 151 ContextMenuController& contextMenuController() const { return *m_contextMenu Controller; }
152 InspectorController& inspectorController() const { return *m_inspectorContro ller; } 152 InspectorController& inspectorController() const { return *m_inspectorContro ller; }
153 PointerLockController& pointerLockController() const { return *m_pointerLock Controller; } 153 PointerLockController& pointerLockController() const { return *m_pointerLock Controller; }
154 ValidationMessageClient* validationMessageClient() const { return m_validati onMessageClient; } 154 ValidationMessageClient& validationMessageClient() const { return *m_validat ionMessageClient; }
155 void setValidationMessageClient(ValidationMessageClient* client) { m_validat ionMessageClient = client; } 155 void setValidationMessageClient(PassOwnPtr<ValidationMessageClient>);
156 156
157 ScrollingCoordinator* scrollingCoordinator(); 157 ScrollingCoordinator* scrollingCoordinator();
158 158
159 String mainThreadScrollingReasonsAsText(); 159 String mainThreadScrollingReasonsAsText();
160 PassRefPtr<ClientRectList> nonFastScrollableRects(const LocalFrame*); 160 PassRefPtr<ClientRectList> nonFastScrollableRects(const LocalFrame*);
161 161
162 Settings& settings() const { return *m_settings; } 162 Settings& settings() const { return *m_settings; }
163 BackForwardClient& backForward() const { return *m_backForwardClient; } 163 BackForwardClient& backForward() const { return *m_backForwardClient; }
164 164
165 UseCounter& useCounter() { return m_useCounter; } 165 UseCounter& useCounter() { return m_useCounter; }
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 251
252 const OwnPtr<HistoryController> m_historyController; 252 const OwnPtr<HistoryController> m_historyController;
253 const OwnPtr<UndoStack> m_undoStack; 253 const OwnPtr<UndoStack> m_undoStack;
254 254
255 RefPtr<LocalFrame> m_mainFrame; 255 RefPtr<LocalFrame> m_mainFrame;
256 256
257 mutable RefPtr<PluginData> m_pluginData; 257 mutable RefPtr<PluginData> m_pluginData;
258 258
259 BackForwardClient* m_backForwardClient; 259 BackForwardClient* m_backForwardClient;
260 EditorClient* const m_editorClient; 260 EditorClient* const m_editorClient;
261 ValidationMessageClient* m_validationMessageClient;
262 SpellCheckerClient* const m_spellCheckerClient; 261 SpellCheckerClient* const m_spellCheckerClient;
263 StorageClient* m_storageClient; 262 StorageClient* m_storageClient;
263 OwnPtr<ValidationMessageClient> m_validationMessageClient;
264 264
265 UseCounter m_useCounter; 265 UseCounter m_useCounter;
266 266
267 int m_subframeCount; 267 int m_subframeCount;
268 bool m_openedByDOM; 268 bool m_openedByDOM;
269 269
270 bool m_tabKeyCyclesThroughElements; 270 bool m_tabKeyCyclesThroughElements;
271 bool m_defersLoading; 271 bool m_defersLoading;
272 272
273 float m_pageScaleFactor; 273 float m_pageScaleFactor;
(...skipping 14 matching lines...) Expand all
288 HashSet<MultisamplingChangedObserver*> m_multisamplingChangedObservers; 288 HashSet<MultisamplingChangedObserver*> m_multisamplingChangedObservers;
289 289
290 // A pointer to all the interfaces provided to in-process Frames for this Pa ge. 290 // A pointer to all the interfaces provided to in-process Frames for this Pa ge.
291 // FIXME: Most of the members of Page should move onto FrameHost. 291 // FIXME: Most of the members of Page should move onto FrameHost.
292 OwnPtr<FrameHost> m_frameHost; 292 OwnPtr<FrameHost> m_frameHost;
293 }; 293 };
294 294
295 } // namespace WebCore 295 } // namespace WebCore
296 296
297 #endif // Page_h 297 #endif // Page_h
OLDNEW
« no previous file with comments | « Source/core/html/forms/ValidationMessage.cpp ('k') | Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698