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

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

Issue 14840015: Lose/restore WebGL contexts if multisampling blackist status changes at runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Changed settings to pass by const reference Created 7 years, 7 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/page/Page.h ('k') | Source/core/page/Settings.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 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 info.ignoreMember(m_plugInClient); 813 info.ignoreMember(m_plugInClient);
814 info.ignoreMember(m_validationMessageClient); 814 info.ignoreMember(m_validationMessageClient);
815 } 815 }
816 816
817 void Page::captionPreferencesChanged() 817 void Page::captionPreferencesChanged()
818 { 818 {
819 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext( )) 819 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext( ))
820 frame->document()->captionPreferencesChanged(); 820 frame->document()->captionPreferencesChanged();
821 } 821 }
822 822
823 void Page::addMultisamplingChangedObserver(MultisamplingChangedObserver* observe r)
824 {
825 m_multisamplingChangedObservers.add(observer);
826 }
827
828 void Page::removeMultisamplingChangedObserver(MultisamplingChangedObserver* obse rver)
829 {
830 m_multisamplingChangedObservers.remove(observer);
831 }
832
833 void Page::multisamplingChanged()
834 {
835 HashSet<MultisamplingChangedObserver*>::iterator stop = m_multisamplingChang edObservers.end();
836 for (HashSet<MultisamplingChangedObserver*>::iterator it = m_multisamplingCh angedObservers.begin(); it != stop; ++it)
837 (*it)->multisamplingChanged(m_settings->openGLMultisamplingEnabled());
838 }
839
823 Page::PageClients::PageClients() 840 Page::PageClients::PageClients()
824 : chromeClient(0) 841 : chromeClient(0)
825 , contextMenuClient(0) 842 , contextMenuClient(0)
826 , editorClient(0) 843 , editorClient(0)
827 , dragClient(0) 844 , dragClient(0)
828 , inspectorClient(0) 845 , inspectorClient(0)
829 , plugInClient(0) 846 , plugInClient(0)
830 { 847 {
831 } 848 }
832 849
833 Page::PageClients::~PageClients() 850 Page::PageClients::~PageClients()
834 { 851 {
835 } 852 }
836 853
837 } // namespace WebCore 854 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/Page.h ('k') | Source/core/page/Settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698