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

Side by Side Diff: sky/engine/core/page/Page.h

Issue 1076623002: Remove our impressive amount of CSS Cursor code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 | « sky/engine/core/page/EventHandler.cpp ('k') | sky/engine/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 10 matching lines...) Expand all
21 #ifndef SKY_ENGINE_CORE_PAGE_PAGE_H_ 21 #ifndef SKY_ENGINE_CORE_PAGE_PAGE_H_
22 #define SKY_ENGINE_CORE_PAGE_PAGE_H_ 22 #define SKY_ENGINE_CORE_PAGE_PAGE_H_
23 23
24 #include "sky/engine/core/frame/ConsoleTypes.h" 24 #include "sky/engine/core/frame/ConsoleTypes.h"
25 #include "sky/engine/core/frame/LocalFrame.h" 25 #include "sky/engine/core/frame/LocalFrame.h"
26 #include "sky/engine/core/frame/SettingsDelegate.h" 26 #include "sky/engine/core/frame/SettingsDelegate.h"
27 #include "sky/engine/core/inspector/ConsoleAPITypes.h" 27 #include "sky/engine/core/inspector/ConsoleAPITypes.h"
28 #include "sky/engine/core/page/FocusType.h" 28 #include "sky/engine/core/page/FocusType.h"
29 #include "sky/engine/core/page/PageAnimator.h" 29 #include "sky/engine/core/page/PageAnimator.h"
30 #include "sky/engine/core/page/PageVisibilityState.h" 30 #include "sky/engine/core/page/PageVisibilityState.h"
31 #include "sky/engine/platform/Cursor.h"
32 #include "sky/engine/platform/HostWindow.h" 31 #include "sky/engine/platform/HostWindow.h"
33 #include "sky/engine/platform/LifecycleContext.h" 32 #include "sky/engine/platform/LifecycleContext.h"
34 #include "sky/engine/platform/Supplementable.h" 33 #include "sky/engine/platform/Supplementable.h"
35 #include "sky/engine/platform/geometry/LayoutRect.h" 34 #include "sky/engine/platform/geometry/LayoutRect.h"
36 #include "sky/engine/platform/geometry/Region.h" 35 #include "sky/engine/platform/geometry/Region.h"
37 #include "sky/engine/platform/heap/Handle.h" 36 #include "sky/engine/platform/heap/Handle.h"
38 #include "sky/engine/wtf/Forward.h" 37 #include "sky/engine/wtf/Forward.h"
39 #include "sky/engine/wtf/HashSet.h" 38 #include "sky/engine/wtf/HashSet.h"
40 #include "sky/engine/wtf/Noncopyable.h" 39 #include "sky/engine/wtf/Noncopyable.h"
41 #include "sky/engine/wtf/text/WTFString.h" 40 #include "sky/engine/wtf/text/WTFString.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 Settings& settings() const { return *m_settings; } 106 Settings& settings() const { return *m_settings; }
108 107
109 void unmarkAllTextMatches(); 108 void unmarkAllTextMatches();
110 109
111 float deviceScaleFactor() const { return m_deviceScaleFactor; } 110 float deviceScaleFactor() const { return m_deviceScaleFactor; }
112 void setDeviceScaleFactor(float); 111 void setDeviceScaleFactor(float);
113 112
114 PageVisibilityState visibilityState() const; 113 PageVisibilityState visibilityState() const;
115 void setVisibilityState(PageVisibilityState, bool); 114 void setVisibilityState(PageVisibilityState, bool);
116 115
117 bool isCursorVisible() const;
118 void setIsCursorVisible(bool isVisible) { m_isCursorVisible = isVisible; }
119
120 #if ENABLE(ASSERT) 116 #if ENABLE(ASSERT)
121 void setIsPainting(bool painting) { m_isPainting = painting; } 117 void setIsPainting(bool painting) { m_isPainting = painting; }
122 bool isPainting() const { return m_isPainting; } 118 bool isPainting() const { return m_isPainting; }
123 #endif 119 #endif
124 120
125 double timerAlignmentInterval() const; 121 double timerAlignmentInterval() const;
126 122
127 class MultisamplingChangedObserver { 123 class MultisamplingChangedObserver {
128 public: 124 public:
129 virtual void multisamplingChanged(bool) = 0; 125 virtual void multisamplingChanged(bool) = 0;
(...skipping 22 matching lines...) Expand all
152 148
153 bool canTakeFocus(FocusType) const; 149 bool canTakeFocus(FocusType) const;
154 void takeFocus(FocusType) const; 150 void takeFocus(FocusType) const;
155 151
156 void focusedNodeChanged(Node*) const; 152 void focusedNodeChanged(Node*) const;
157 void focusedFrameChanged(LocalFrame*) const; 153 void focusedFrameChanged(LocalFrame*) const;
158 154
159 bool shouldReportDetailedMessageForSource(const String& source); 155 bool shouldReportDetailedMessageForSource(const String& source);
160 void addMessageToConsole(LocalFrame*, MessageSource, MessageLevel, const Str ing& message, unsigned lineNumber, const String& sourceID, const String& stackTr ace); 156 void addMessageToConsole(LocalFrame*, MessageSource, MessageLevel, const Str ing& message, unsigned lineNumber, const String& sourceID, const String& stackTr ace);
161 157
162 void setCursor(const Cursor&);
163
164 void* webView() const; 158 void* webView() const;
165 159
166 private: 160 private:
167 PageLifecycleNotifier& lifecycleNotifier(); 161 PageLifecycleNotifier& lifecycleNotifier();
168 162
169 void initGroup(); 163 void initGroup();
170 164
171 void setTimerAlignmentInterval(double); 165 void setTimerAlignmentInterval(double);
172 166
173 void setNeedsLayoutInAllFrames(); 167 void setNeedsLayoutInAllFrames();
(...skipping 23 matching lines...) Expand all
197 191
198 EditorClient* const m_editorClient; 192 EditorClient* const m_editorClient;
199 SpellCheckerClient* const m_spellCheckerClient; 193 SpellCheckerClient* const m_spellCheckerClient;
200 194
201 float m_deviceScaleFactor; 195 float m_deviceScaleFactor;
202 196
203 double m_timerAlignmentInterval; 197 double m_timerAlignmentInterval;
204 198
205 PageVisibilityState m_visibilityState; 199 PageVisibilityState m_visibilityState;
206 200
207 bool m_isCursorVisible;
208
209 #if ENABLE(ASSERT) 201 #if ENABLE(ASSERT)
210 bool m_isPainting; 202 bool m_isPainting;
211 #endif 203 #endif
212 204
213 HashSet<RawPtr<MultisamplingChangedObserver> > m_multisamplingChangedObserve rs; 205 HashSet<RawPtr<MultisamplingChangedObserver> > m_multisamplingChangedObserve rs;
214 206
215 // A pointer to all the interfaces provided to in-process Frames for this Pa ge. 207 // A pointer to all the interfaces provided to in-process Frames for this Pa ge.
216 // FIXME: Most of the members of Page should move onto FrameHost. 208 // FIXME: Most of the members of Page should move onto FrameHost.
217 OwnPtr<FrameHost> m_frameHost; 209 OwnPtr<FrameHost> m_frameHost;
218 }; 210 };
219 211
220 } // namespace blink 212 } // namespace blink
221 213
222 #endif // SKY_ENGINE_CORE_PAGE_PAGE_H_ 214 #endif // SKY_ENGINE_CORE_PAGE_PAGE_H_
OLDNEW
« no previous file with comments | « sky/engine/core/page/EventHandler.cpp ('k') | sky/engine/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698