Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 819 info.ignoreMember(m_plugInClient); | 819 info.ignoreMember(m_plugInClient); |
| 820 info.ignoreMember(m_validationMessageClient); | 820 info.ignoreMember(m_validationMessageClient); |
| 821 } | 821 } |
| 822 | 822 |
| 823 void Page::captionPreferencesChanged() | 823 void Page::captionPreferencesChanged() |
| 824 { | 824 { |
| 825 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext( )) | 825 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext( )) |
| 826 frame->document()->captionPreferencesChanged(); | 826 frame->document()->captionPreferencesChanged(); |
| 827 } | 827 } |
| 828 | 828 |
| 829 void Page::addSettingsChangedObserver(SettingsChangedObserver* observer) | |
| 830 { | |
| 831 m_settingsChangedObservers.add(observer); | |
| 832 } | |
| 833 | |
| 834 void Page::removeSettingsChangedObserver(SettingsChangedObserver* observer) | |
| 835 { | |
| 836 m_settingsChangedObservers.remove(observer); | |
| 837 } | |
| 838 | |
| 839 void Page::settingsChanged() const | |
| 840 { | |
| 841 HashSet<SettingsChangedObserver*>::iterator stop = m_settingsChangedObserver s.end(); | |
| 842 for (HashSet<SettingsChangedObserver*>::iterator it = m_settingsChangedObser vers.begin(); it != stop; ++it) | |
| 843 (*it)->settingsChanged(m_settings.get()); | |
|
abarth-chromium
2013/05/06 21:58:30
This is a weak iteration pattern. What if calling
| |
| 844 } | |
| 845 | |
| 829 Page::PageClients::PageClients() | 846 Page::PageClients::PageClients() |
| 830 : alternativeTextClient(0) | 847 : alternativeTextClient(0) |
| 831 , chromeClient(0) | 848 , chromeClient(0) |
| 832 , contextMenuClient(0) | 849 , contextMenuClient(0) |
| 833 , editorClient(0) | 850 , editorClient(0) |
| 834 , dragClient(0) | 851 , dragClient(0) |
| 835 , inspectorClient(0) | 852 , inspectorClient(0) |
| 836 , plugInClient(0) | 853 , plugInClient(0) |
| 837 { | 854 { |
| 838 } | 855 } |
| 839 | 856 |
| 840 Page::PageClients::~PageClients() | 857 Page::PageClients::~PageClients() |
| 841 { | 858 { |
| 842 } | 859 } |
| 843 | 860 |
| 844 } // namespace WebCore | 861 } // namespace WebCore |
| OLD | NEW |