| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 4 * Copyright (C) 2012, Samsung Electronics. All rights reserved. | 4 * Copyright (C) 2012, Samsung Electronics. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| 11 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
| 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 * Library General Public License for more details. | 14 * Library General Public License for more details. |
| 15 * | 15 * |
| 16 * You should have received a copy of the GNU Library General Public License | 16 * You should have received a copy of the GNU Library General Public License |
| 17 * along with this library; see the file COPYING.LIB. If not, write to | 17 * along with this library; see the file COPYING.LIB. If not, write to |
| 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 19 * Boston, MA 02110-1301, USA. | 19 * Boston, MA 02110-1301, USA. |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #ifndef Chrome_h | 22 #ifndef Chrome_h |
| 23 #define Chrome_h | 23 #define Chrome_h |
| 24 | 24 |
| 25 #include "core/loader/NavigationPolicy.h" | 25 #include "core/loader/NavigationPolicy.h" |
| 26 #include "core/page/FocusType.h" | 26 #include "core/page/FocusType.h" |
| 27 #include "platform/Cursor.h" | 27 #include "platform/Cursor.h" |
| 28 #include "platform/HostWindow.h" | 28 #include "platform/HostWindow.h" |
| 29 #include "platform/heap/Handle.h" |
| 29 #include "wtf/Forward.h" | 30 #include "wtf/Forward.h" |
| 30 | 31 |
| 31 namespace WebCore { | 32 namespace WebCore { |
| 32 | 33 |
| 33 class ChromeClient; | 34 class ChromeClient; |
| 34 class ColorChooser; | 35 class ColorChooser; |
| 35 class ColorChooserClient; | 36 class ColorChooserClient; |
| 36 class DateTimeChooser; | 37 class DateTimeChooser; |
| 37 class DateTimeChooserClient; | 38 class DateTimeChooserClient; |
| 38 class FileChooser; | 39 class FileChooser; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 111 |
| 111 IntRect windowResizerRect() const; | 112 IntRect windowResizerRect() const; |
| 112 | 113 |
| 113 void mouseDidMoveOverElement(const HitTestResult&, unsigned modifierFlags); | 114 void mouseDidMoveOverElement(const HitTestResult&, unsigned modifierFlags); |
| 114 | 115 |
| 115 void setToolTip(const HitTestResult&); | 116 void setToolTip(const HitTestResult&); |
| 116 | 117 |
| 117 void print(LocalFrame*); | 118 void print(LocalFrame*); |
| 118 | 119 |
| 119 PassOwnPtr<ColorChooser> createColorChooser(LocalFrame*, ColorChooserClient*
, const Color& initialColor); | 120 PassOwnPtr<ColorChooser> createColorChooser(LocalFrame*, ColorChooserClient*
, const Color& initialColor); |
| 120 PassRefPtr<DateTimeChooser> openDateTimeChooser(DateTimeChooserClient*, cons
t DateTimeChooserParameters&); | 121 PassRefPtrWillBeRawPtr<DateTimeChooser> openDateTimeChooser(DateTimeChooserC
lient*, const DateTimeChooserParameters&); |
| 121 void openTextDataListChooser(HTMLInputElement&); | 122 void openTextDataListChooser(HTMLInputElement&); |
| 122 | 123 |
| 123 void runOpenPanel(LocalFrame*, PassRefPtr<FileChooser>); | 124 void runOpenPanel(LocalFrame*, PassRefPtr<FileChooser>); |
| 124 void enumerateChosenDirectory(FileChooser*); | 125 void enumerateChosenDirectory(FileChooser*); |
| 125 | 126 |
| 126 void dispatchViewportPropertiesDidChange(const ViewportDescription&) const; | 127 void dispatchViewportPropertiesDidChange(const ViewportDescription&) const; |
| 127 | 128 |
| 128 bool hasOpenedPopup() const; | 129 bool hasOpenedPopup() const; |
| 129 PassRefPtr<PopupMenu> createPopupMenu(LocalFrame&, PopupMenuClient*) const; | 130 PassRefPtr<PopupMenu> createPopupMenu(LocalFrame&, PopupMenuClient*) const; |
| 130 | 131 |
| 131 void registerPopupOpeningObserver(PopupOpeningObserver*); | 132 void registerPopupOpeningObserver(PopupOpeningObserver*); |
| 132 void unregisterPopupOpeningObserver(PopupOpeningObserver*); | 133 void unregisterPopupOpeningObserver(PopupOpeningObserver*); |
| 133 | 134 |
| 134 void willBeDestroyed(); | 135 void willBeDestroyed(); |
| 135 | 136 |
| 136 private: | 137 private: |
| 137 Chrome(Page*, ChromeClient*); | 138 Chrome(Page*, ChromeClient*); |
| 138 void notifyPopupOpeningObservers() const; | 139 void notifyPopupOpeningObservers() const; |
| 139 | 140 |
| 140 Page* m_page; | 141 Page* m_page; |
| 141 ChromeClient* m_client; | 142 ChromeClient* m_client; |
| 142 Vector<PopupOpeningObserver*> m_popupOpeningObservers; | 143 Vector<PopupOpeningObserver*> m_popupOpeningObservers; |
| 143 }; | 144 }; |
| 144 | 145 |
| 145 } | 146 } |
| 146 | 147 |
| 147 #endif // Chrome_h | 148 #endif // Chrome_h |
| OLD | NEW |