| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 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 ChromeClient_h | 22 #ifndef ChromeClient_h |
| 23 #define ChromeClient_h | 23 #define ChromeClient_h |
| 24 | 24 |
| 25 #include "base/gtest_prod_util.h" |
| 25 #include "core/CoreExport.h" | 26 #include "core/CoreExport.h" |
| 26 #include "core/dom/AXObjectCache.h" | 27 #include "core/dom/AXObjectCache.h" |
| 27 #include "core/frame/ConsoleTypes.h" | 28 #include "core/frame/ConsoleTypes.h" |
| 28 #include "core/inspector/ConsoleAPITypes.h" | 29 #include "core/inspector/ConsoleAPITypes.h" |
| 29 #include "core/loader/FrameLoader.h" | 30 #include "core/loader/FrameLoader.h" |
| 30 #include "core/loader/NavigationPolicy.h" | 31 #include "core/loader/NavigationPolicy.h" |
| 31 #include "core/style/ComputedStyleConstants.h" | 32 #include "core/style/ComputedStyleConstants.h" |
| 32 #include "platform/Cursor.h" | 33 #include "platform/Cursor.h" |
| 33 #include "platform/HostWindow.h" | 34 #include "platform/HostWindow.h" |
| 34 #include "platform/PopupMenu.h" | 35 #include "platform/PopupMenu.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 149 |
| 149 virtual void dispatchViewportPropertiesDidChange(const ViewportDescription&)
const { } | 150 virtual void dispatchViewportPropertiesDidChange(const ViewportDescription&)
const { } |
| 150 | 151 |
| 151 virtual void contentsSizeChanged(LocalFrame*, const IntSize&) const = 0; | 152 virtual void contentsSizeChanged(LocalFrame*, const IntSize&) const = 0; |
| 152 virtual void pageScaleFactorChanged() const { } | 153 virtual void pageScaleFactorChanged() const { } |
| 153 virtual float clampPageScaleFactorToLimits(float scale) const { return scale
; } | 154 virtual float clampPageScaleFactorToLimits(float scale) const { return scale
; } |
| 154 virtual void layoutUpdated(LocalFrame*) const { } | 155 virtual void layoutUpdated(LocalFrame*) const { } |
| 155 | 156 |
| 156 void mouseDidMoveOverElement(const HitTestResult&); | 157 void mouseDidMoveOverElement(const HitTestResult&); |
| 157 virtual void setToolTip(const String&, TextDirection) = 0; | 158 virtual void setToolTip(const String&, TextDirection) = 0; |
| 159 void clearToolTip(); |
| 158 | 160 |
| 159 void print(LocalFrame*); | 161 void print(LocalFrame*); |
| 160 | 162 |
| 161 virtual void annotatedRegionsChanged() = 0; | 163 virtual void annotatedRegionsChanged() = 0; |
| 162 | 164 |
| 163 virtual PassOwnPtrWillBeRawPtr<ColorChooser> openColorChooser(LocalFrame*, C
olorChooserClient*, const Color&) = 0; | 165 virtual PassOwnPtrWillBeRawPtr<ColorChooser> openColorChooser(LocalFrame*, C
olorChooserClient*, const Color&) = 0; |
| 164 | 166 |
| 165 // This function is used for: | 167 // This function is used for: |
| 166 // - Mandatory date/time choosers if !ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 168 // - Mandatory date/time choosers if !ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
| 167 // - Date/time choosers for types for which LayoutTheme::supportsCalendarPi
cker | 169 // - Date/time choosers for types for which LayoutTheme::supportsCalendarPi
cker |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 virtual void setWindowRect(const IntRect&) = 0; | 265 virtual void setWindowRect(const IntRect&) = 0; |
| 264 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, const String&
message, bool isReload) = 0; | 266 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, const String&
message, bool isReload) = 0; |
| 265 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; | 267 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; |
| 266 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0; | 268 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0; |
| 267 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message
, const String& defaultValue, String& result) = 0; | 269 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message
, const String& defaultValue, String& result) = 0; |
| 268 virtual void printDelegate(LocalFrame*) = 0; | 270 virtual void printDelegate(LocalFrame*) = 0; |
| 269 | 271 |
| 270 private: | 272 private: |
| 271 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S
tring& message); | 273 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S
tring& message); |
| 272 void setToolTip(const HitTestResult&); | 274 void setToolTip(const HitTestResult&); |
| 275 |
| 276 LayoutPoint m_lastToolTipPoint; |
| 277 String m_lastToolTipText; |
| 278 |
| 279 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); |
| 273 }; | 280 }; |
| 274 | 281 |
| 275 } // namespace blink | 282 } // namespace blink |
| 276 | 283 |
| 277 #endif // ChromeClient_h | 284 #endif // ChromeClient_h |
| OLD | NEW |