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

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: Missed one of kbr's suggestions in previous patch 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
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 807 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 info.ignoreMember(m_plugInClient); 818 info.ignoreMember(m_plugInClient);
819 info.ignoreMember(m_validationMessageClient); 819 info.ignoreMember(m_validationMessageClient);
820 } 820 }
821 821
822 void Page::captionPreferencesChanged() 822 void Page::captionPreferencesChanged()
823 { 823 {
824 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext( )) 824 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext( ))
825 frame->document()->captionPreferencesChanged(); 825 frame->document()->captionPreferencesChanged();
826 } 826 }
827 827
828 void Page::addMultisamplingChangedObserver(MultisamplingChangedObserver* observe r)
829 {
830 m_multisamplingChangedObservers.add(observer);
831 }
832
833 void Page::removeMultisamplingChangedObserver(MultisamplingChangedObserver* obse rver)
834 {
835 m_multisamplingChangedObservers.remove(observer);
836 }
837
838 void Page::multisamplingChanged()
839 {
840 HashSet<MultisamplingChangedObserver*>::iterator stop = m_multisamplingChang edObservers.end();
841 for (HashSet<MultisamplingChangedObserver*>::iterator it = m_multisamplingCh angedObservers.begin(); it != stop; ++it)
842 (*it)->multisamplingChanged(m_settings->openGLMultisamplingEnabled());
843 }
844
828 Page::PageClients::PageClients() 845 Page::PageClients::PageClients()
829 : alternativeTextClient(0) 846 : alternativeTextClient(0)
830 , chromeClient(0) 847 , chromeClient(0)
831 , contextMenuClient(0) 848 , contextMenuClient(0)
832 , editorClient(0) 849 , editorClient(0)
833 , dragClient(0) 850 , dragClient(0)
834 , inspectorClient(0) 851 , inspectorClient(0)
835 , plugInClient(0) 852 , plugInClient(0)
836 { 853 {
837 } 854 }
838 855
839 Page::PageClients::~PageClients() 856 Page::PageClients::~PageClients()
840 { 857 {
841 } 858 }
842 859
843 } // namespace WebCore 860 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698