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

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

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/Page.h ('k') | sky/engine/core/rendering/RenderObject.h » ('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, 2011, 2012, 2013 Apple Inc. All R ights Reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved.
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 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 , m_chromeClient(pageClients.chromeClient) 68 , m_chromeClient(pageClients.chromeClient)
69 , m_dragCaretController(DragCaretController::create()) 69 , m_dragCaretController(DragCaretController::create())
70 , m_focusController(FocusController::create(this)) 70 , m_focusController(FocusController::create(this))
71 , m_undoStack(UndoStack::create()) 71 , m_undoStack(UndoStack::create())
72 , m_mainFrame(0) 72 , m_mainFrame(0)
73 , m_editorClient(pageClients.editorClient) 73 , m_editorClient(pageClients.editorClient)
74 , m_spellCheckerClient(pageClients.spellCheckerClient) 74 , m_spellCheckerClient(pageClients.spellCheckerClient)
75 , m_deviceScaleFactor(1) 75 , m_deviceScaleFactor(1)
76 , m_timerAlignmentInterval(DOMTimer::visiblePageAlignmentInterval()) 76 , m_timerAlignmentInterval(DOMTimer::visiblePageAlignmentInterval())
77 , m_visibilityState(PageVisibilityStateVisible) 77 , m_visibilityState(PageVisibilityStateVisible)
78 , m_isCursorVisible(true)
79 #if ENABLE(ASSERT) 78 #if ENABLE(ASSERT)
80 , m_isPainting(false) 79 , m_isPainting(false)
81 #endif 80 #endif
82 , m_frameHost(FrameHost::create(*this, services)) 81 , m_frameHost(FrameHost::create(*this, services))
83 { 82 {
84 ASSERT(m_editorClient); 83 ASSERT(m_editorClient);
85 84
86 #ifndef NDEBUG 85 #ifndef NDEBUG
87 pageCounter.increment(); 86 pageCounter.increment();
88 #endif 87 #endif
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 176
178 if (!isInitialState && m_mainFrame) 177 if (!isInitialState && m_mainFrame)
179 mainFrame()->didChangeVisibilityState(); 178 mainFrame()->didChangeVisibilityState();
180 } 179 }
181 180
182 PageVisibilityState Page::visibilityState() const 181 PageVisibilityState Page::visibilityState() const
183 { 182 {
184 return m_visibilityState; 183 return m_visibilityState;
185 } 184 }
186 185
187 bool Page::isCursorVisible() const
188 {
189 return m_isCursorVisible && settings().deviceSupportsMouse();
190 }
191
192 void Page::addMultisamplingChangedObserver(MultisamplingChangedObserver* observe r) 186 void Page::addMultisamplingChangedObserver(MultisamplingChangedObserver* observe r)
193 { 187 {
194 m_multisamplingChangedObservers.add(observer); 188 m_multisamplingChangedObservers.add(observer);
195 } 189 }
196 190
197 void Page::removeMultisamplingChangedObserver(MultisamplingChangedObserver* obse rver) 191 void Page::removeMultisamplingChangedObserver(MultisamplingChangedObserver* obse rver)
198 { 192 {
199 m_multisamplingChangedObservers.remove(observer); 193 m_multisamplingChangedObservers.remove(observer);
200 } 194 }
201 195
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 void Page::focusedFrameChanged(LocalFrame* frame) const 307 void Page::focusedFrameChanged(LocalFrame* frame) const
314 { 308 {
315 m_chromeClient->focusedFrameChanged(frame); 309 m_chromeClient->focusedFrameChanged(frame);
316 } 310 }
317 311
318 void Page::scheduleVisualUpdate() 312 void Page::scheduleVisualUpdate()
319 { 313 {
320 m_chromeClient->scheduleVisualUpdate(); 314 m_chromeClient->scheduleVisualUpdate();
321 } 315 }
322 316
323 void Page::setCursor(const Cursor& cursor)
324 {
325 m_chromeClient->setCursor(cursor);
326 }
327
328 bool Page::shouldReportDetailedMessageForSource(const String& source) 317 bool Page::shouldReportDetailedMessageForSource(const String& source)
329 { 318 {
330 return m_chromeClient->shouldReportDetailedMessageForSource(source); 319 return m_chromeClient->shouldReportDetailedMessageForSource(source);
331 } 320 }
332 321
333 void Page::addMessageToConsole(LocalFrame* localFrame, MessageSource source, Mes sageLevel level, const String& message, unsigned lineNumber, const String& sourc eID, const String& stackTrace) 322 void Page::addMessageToConsole(LocalFrame* localFrame, MessageSource source, Mes sageLevel level, const String& message, unsigned lineNumber, const String& sourc eID, const String& stackTrace)
334 { 323 {
335 m_chromeClient->addMessageToConsole(localFrame, source, level, message, line Number, sourceID, stackTrace); 324 m_chromeClient->addMessageToConsole(localFrame, source, level, message, line Number, sourceID, stackTrace);
336 } 325 }
337 326
338 void* Page::webView() const 327 void* Page::webView() const
339 { 328 {
340 return m_chromeClient->webView(); 329 return m_chromeClient->webView();
341 } 330 }
342 331
343 Page::PageClients::PageClients() 332 Page::PageClients::PageClients()
344 : chromeClient(0) 333 : chromeClient(0)
345 , editorClient(0) 334 , editorClient(0)
346 , spellCheckerClient(0) 335 , spellCheckerClient(0)
347 { 336 {
348 } 337 }
349 338
350 Page::PageClients::~PageClients() 339 Page::PageClients::~PageClients()
351 { 340 {
352 } 341 }
353 342
354 } // namespace blink 343 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/page/Page.h ('k') | sky/engine/core/rendering/RenderObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698