| 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 * |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 class Chrome : public HostWindow { | 58 class Chrome : public HostWindow { |
| 59 public: | 59 public: |
| 60 ~Chrome(); | 60 ~Chrome(); |
| 61 | 61 |
| 62 static PassOwnPtr<Chrome> create(Page*, ChromeClient*); | 62 static PassOwnPtr<Chrome> create(Page*, ChromeClient*); |
| 63 | 63 |
| 64 ChromeClient* client() { return m_client; } | 64 ChromeClient* client() { return m_client; } |
| 65 | 65 |
| 66 // HostWindow methods. | 66 // HostWindow methods. |
| 67 virtual void invalidateRootView(const IntRect&) OVERRIDE; | |
| 68 virtual void invalidateContentsAndRootView(const IntRect&) OVERRIDE; | 67 virtual void invalidateContentsAndRootView(const IntRect&) OVERRIDE; |
| 69 virtual void invalidateContentsForSlowScroll(const IntRect&) OVERRIDE; | 68 virtual void invalidateContentsForSlowScroll(const IntRect&) OVERRIDE; |
| 70 virtual void scroll(const IntSize&, const IntRect&, const IntRect&) OVERRIDE
; | 69 virtual void scroll(const IntSize&, const IntRect&, const IntRect&) OVERRIDE
; |
| 71 virtual IntPoint screenToRootView(const IntPoint&) const OVERRIDE; | 70 virtual IntPoint screenToRootView(const IntPoint&) const OVERRIDE; |
| 72 virtual IntRect rootViewToScreen(const IntRect&) const OVERRIDE; | 71 virtual IntRect rootViewToScreen(const IntRect&) const OVERRIDE; |
| 73 virtual PlatformPageClient platformPageClient() const OVERRIDE; | 72 virtual PlatformPageClient platformPageClient() const OVERRIDE; |
| 74 virtual void scrollbarsModeDidChange() const OVERRIDE; | 73 virtual void scrollbarsModeDidChange() const OVERRIDE; |
| 75 virtual void setCursor(const Cursor&) OVERRIDE; | 74 virtual void setCursor(const Cursor&) OVERRIDE; |
| 76 virtual void setCursorHiddenUntilMouseMoves(bool) OVERRIDE; | 75 virtual void setCursorHiddenUntilMouseMoves(bool) OVERRIDE; |
| 77 | 76 |
| 78 virtual void scheduleAnimation() OVERRIDE; | 77 virtual void scheduleAnimation() OVERRIDE; |
| 79 | 78 |
| 80 void scrollRectIntoView(const IntRect&) const; | 79 void scrollRectIntoView(const IntRect&) const; |
| 81 | 80 |
| 82 void contentsSizeChanged(Frame*, const IntSize&) const; | 81 void contentsSizeChanged(Frame*, const IntSize&) const; |
| 83 void layoutUpdated(Frame*) const; | 82 void layoutUpdated(Frame*) const; |
| 84 | 83 |
| 85 void setWindowRect(const FloatRect&) const; | 84 void setWindowRect(const FloatRect&) const; |
| 86 FloatRect windowRect() const; | 85 FloatRect windowRect() const; |
| 87 | 86 |
| 88 FloatRect pageRect() const; | 87 FloatRect pageRect() const; |
| 89 | 88 |
| 90 void focus() const; | 89 void focus() const; |
| 91 void unfocus() const; | 90 void unfocus() const; |
| 92 | 91 |
| 93 bool canTakeFocus(FocusDirection) const; | 92 bool canTakeFocus(FocusDirection) const; |
| 94 void takeFocus(FocusDirection) const; | 93 void takeFocus(FocusDirection) const; |
| 95 | 94 |
| 96 void focusedNodeChanged(Node*) const; | 95 void focusedNodeChanged(Node*) const; |
| 97 void focusedFrameChanged(Frame*) const; | |
| 98 | 96 |
| 99 Page* createWindow(Frame*, const FrameLoadRequest&, const WindowFeatures&, c
onst NavigationAction&) const; | 97 Page* createWindow(Frame*, const FrameLoadRequest&, const WindowFeatures&, c
onst NavigationAction&) const; |
| 100 void show() const; | 98 void show() const; |
| 101 | 99 |
| 102 bool canRunModal() const; | 100 bool canRunModal() const; |
| 103 bool canRunModalNow() const; | 101 bool canRunModalNow() const; |
| 104 void runModal() const; | 102 void runModal() const; |
| 105 | 103 |
| 106 void setToolbarsVisible(bool) const; | 104 void setToolbarsVisible(bool) const; |
| 107 bool toolbarsVisible() const; | 105 bool toolbarsVisible() const; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 119 | 117 |
| 120 bool canRunBeforeUnloadConfirmPanel(); | 118 bool canRunBeforeUnloadConfirmPanel(); |
| 121 bool runBeforeUnloadConfirmPanel(const String& message, Frame*); | 119 bool runBeforeUnloadConfirmPanel(const String& message, Frame*); |
| 122 | 120 |
| 123 void closeWindowSoon(); | 121 void closeWindowSoon(); |
| 124 | 122 |
| 125 void runJavaScriptAlert(Frame*, const String&); | 123 void runJavaScriptAlert(Frame*, const String&); |
| 126 bool runJavaScriptConfirm(Frame*, const String&); | 124 bool runJavaScriptConfirm(Frame*, const String&); |
| 127 bool runJavaScriptPrompt(Frame*, const String& message, const String& defaul
tValue, String& result); | 125 bool runJavaScriptPrompt(Frame*, const String& message, const String& defaul
tValue, String& result); |
| 128 void setStatusbarText(Frame*, const String&); | 126 void setStatusbarText(Frame*, const String&); |
| 129 bool shouldInterruptJavaScript(); | |
| 130 | 127 |
| 131 IntRect windowResizerRect() const; | 128 IntRect windowResizerRect() const; |
| 132 | 129 |
| 133 void mouseDidMoveOverElement(const HitTestResult&, unsigned modifierFlags); | 130 void mouseDidMoveOverElement(const HitTestResult&, unsigned modifierFlags); |
| 134 | 131 |
| 135 void setToolTip(const HitTestResult&); | 132 void setToolTip(const HitTestResult&); |
| 136 | 133 |
| 137 void print(Frame*); | 134 void print(Frame*); |
| 138 | 135 |
| 139 #if ENABLE(INPUT_TYPE_COLOR) | 136 #if ENABLE(INPUT_TYPE_COLOR) |
| 140 PassOwnPtr<ColorChooser> createColorChooser(ColorChooserClient*, const Color
& initialColor); | 137 PassOwnPtr<ColorChooser> createColorChooser(ColorChooserClient*, const Color
& initialColor); |
| 141 #endif | 138 #endif |
| 142 PassRefPtr<DateTimeChooser> openDateTimeChooser(DateTimeChooserClient*, cons
t DateTimeChooserParameters&); | 139 PassRefPtr<DateTimeChooser> openDateTimeChooser(DateTimeChooserClient*, cons
t DateTimeChooserParameters&); |
| 143 | 140 |
| 144 void runOpenPanel(Frame*, PassRefPtr<FileChooser>); | 141 void runOpenPanel(Frame*, PassRefPtr<FileChooser>); |
| 145 void loadIconForFiles(const Vector<String>&, FileIconLoader*); | 142 void loadIconForFiles(const Vector<String>&, FileIconLoader*); |
| 146 void enumerateChosenDirectory(FileChooser*); | 143 void enumerateChosenDirectory(FileChooser*); |
| 147 | 144 |
| 148 void dispatchViewportPropertiesDidChange(const ViewportArguments&) const; | 145 void dispatchViewportPropertiesDidChange(const ViewportArguments&) const; |
| 149 | 146 |
| 150 bool requiresFullscreenForVideoPlayback(); | |
| 151 | |
| 152 bool selectItemWritingDirectionIsNatural(); | |
| 153 bool selectItemAlignmentFollowsMenuWritingDirection(); | |
| 154 bool hasOpenedPopup() const; | 147 bool hasOpenedPopup() const; |
| 155 PassRefPtr<PopupMenu> createPopupMenu(PopupMenuClient*) const; | 148 PassRefPtr<PopupMenu> createPopupMenu(PopupMenuClient*) const; |
| 156 PassRefPtr<SearchPopupMenu> createSearchPopupMenu(PopupMenuClient*) const; | 149 PassRefPtr<SearchPopupMenu> createSearchPopupMenu(PopupMenuClient*) const; |
| 157 | 150 |
| 158 void registerPopupOpeningObserver(PopupOpeningObserver*); | 151 void registerPopupOpeningObserver(PopupOpeningObserver*); |
| 159 void unregisterPopupOpeningObserver(PopupOpeningObserver*); | 152 void unregisterPopupOpeningObserver(PopupOpeningObserver*); |
| 160 | 153 |
| 161 private: | 154 private: |
| 162 Chrome(Page*, ChromeClient*); | 155 Chrome(Page*, ChromeClient*); |
| 163 void notifyPopupOpeningObservers() const; | 156 void notifyPopupOpeningObservers() const; |
| 164 | 157 |
| 165 Page* m_page; | 158 Page* m_page; |
| 166 ChromeClient* m_client; | 159 ChromeClient* m_client; |
| 167 Vector<PopupOpeningObserver*> m_popupOpeningObservers; | 160 Vector<PopupOpeningObserver*> m_popupOpeningObservers; |
| 168 }; | 161 }; |
| 169 | 162 |
| 170 } | 163 } |
| 171 | 164 |
| 172 #endif // Chrome_h | 165 #endif // Chrome_h |
| OLD | NEW |