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

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

Issue 261633002: Add RenderView / Widget setDeviceColorProfile interface to Page (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use WebVector. Created 6 years, 3 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/page/Page.h ('k') | Source/web/WebViewImpl.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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 375
376 m_deviceScaleFactor = scaleFactor; 376 m_deviceScaleFactor = scaleFactor;
377 setNeedsRecalcStyleInAllFrames(); 377 setNeedsRecalcStyleInAllFrames();
378 378
379 if (mainFrame() && mainFrame()->isLocalFrame()) { 379 if (mainFrame() && mainFrame()->isLocalFrame()) {
380 deprecatedLocalMainFrame()->deviceOrPageScaleFactorChanged(); 380 deprecatedLocalMainFrame()->deviceOrPageScaleFactorChanged();
381 m_chrome->client().deviceOrPageScaleFactorChanged(); 381 m_chrome->client().deviceOrPageScaleFactorChanged();
382 } 382 }
383 } 383 }
384 384
385 void Page::setDeviceColorProfile(const Vector<char>& profile)
386 {
387 // FIXME: implement.
388 }
389
390 void Page::resetDeviceColorProfile()
391 {
392 // FIXME: implement.
393 }
394
385 void Page::allVisitedStateChanged() 395 void Page::allVisitedStateChanged()
386 { 396 {
387 HashSet<Page*>::iterator pagesEnd = ordinaryPages().end(); 397 HashSet<Page*>::iterator pagesEnd = ordinaryPages().end();
388 for (HashSet<Page*>::iterator it = ordinaryPages().begin(); it != pagesEnd; ++it) { 398 for (HashSet<Page*>::iterator it = ordinaryPages().begin(); it != pagesEnd; ++it) {
389 Page* page = *it; 399 Page* page = *it;
390 for (Frame* frame = page->m_mainFrame; frame; frame = frame->tree().trav erseNext()) { 400 for (Frame* frame = page->m_mainFrame; frame; frame = frame->tree().trav erseNext()) {
391 if (frame->isLocalFrame()) 401 if (frame->isLocalFrame())
392 toLocalFrame(frame)->document()->visitedLinkState().invalidateSt yleForAllLinks(); 402 toLocalFrame(frame)->document()->visitedLinkState().invalidateSt yleForAllLinks();
393 } 403 }
394 } 404 }
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 , spellCheckerClient(0) 661 , spellCheckerClient(0)
652 , storageClient(0) 662 , storageClient(0)
653 { 663 {
654 } 664 }
655 665
656 Page::PageClients::~PageClients() 666 Page::PageClients::~PageClients()
657 { 667 {
658 } 668 }
659 669
660 } // namespace blink 670 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/page/Page.h ('k') | Source/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698