57 ~Chrome(); |
58 ~Chrome(); |
58 |
59 |
59 ChromeClient* client() { return m_client; } |
60 ChromeClient* client() { return m_client; } |
60 |
61 |
61 // HostWindow methods. |
62 // HostWindow methods. |
62 virtual void repaint(const IntRect&, bool contentChanged, bool immediate = false, bool repaintContentOnly = false); |
63 |
63 virtual void scroll(const IntSize& scrollDelta, const IntRect& rectToScroll, const IntRect& clipRect); |
64 virtual void invalidateWindow(const IntRect&, bool); |
|
65 virtual void invalidateContentsAndWindow(const IntRect&, bool); |
|
66 virtual void invalidateContentsForSlowScroll(const IntRect&, bool); |
|
67 virtual void scroll(const IntSize&, const IntRect&, const IntRect&); |
64 virtual IntPoint screenToWindow(const IntPoint&) const; |
68 virtual IntPoint screenToWindow(const IntPoint&) const; |
65 virtual IntRect windowToScreen(const IntRect&) const; |
69 virtual IntRect windowToScreen(const IntRect&) const; |
66 virtual PlatformPageClient platformPageClient() const; |
70 virtual PlatformPageClient platformPageClient() const; |
67 virtual void scrollRectIntoView(const IntRect&, const ScrollView*) const; |
71 virtual void scrollRectIntoView(const IntRect&, const ScrollView*) const; |
68 virtual void scrollbarsModeDidChange() const; |
72 virtual void scrollbarsModeDidChange() const; |
79 void focus() const; |
83 void focus() const; |
80 void unfocus() const; |
84 void unfocus() const; |
81 |
85 |
82 bool canTakeFocus(FocusDirection) const; |
86 bool canTakeFocus(FocusDirection) const; |
83 void takeFocus(FocusDirection) const; |
87 void takeFocus(FocusDirection) const; |
|
88 |
|
89 void focusedNodeChanged(Node*) const; |
84 |
90 |
85 Page* createWindow(Frame*, const FrameLoadRequest&, const WindowFeatures&) const; |
91 Page* createWindow(Frame*, const FrameLoadRequest&, const WindowFeatures&) const; |
86 void show() const; |
92 void show() const; |
87 |
93 |
88 bool canRunModal() const; |
94 bool canRunModal() const; |
112 bool runJavaScriptConfirm(Frame*, const String&); |
118 bool runJavaScriptConfirm(Frame*, const String&); |
113 bool runJavaScriptPrompt(Frame*, const String& message, const String& defaultValue, String& result); |
119 bool runJavaScriptPrompt(Frame*, const String& message, const String& defaultValue, String& result); |
114 void setStatusbarText(Frame*, const String&); |
120 void setStatusbarText(Frame*, const String&); |
115 bool shouldInterruptJavaScript(); |
121 bool shouldInterruptJavaScript(); |
116 |
122 |
|
123 void registerProtocolHandler(const String& scheme, const String& baseURL, const String& url, const String& title); |
|
124 void registerContentHandler(const String& mimeType, const String& baseURL, const String& url, const String& title); |
|
125 |
117 IntRect windowResizerRect() const; |
126 IntRect windowResizerRect() const; |
118 |
127 |
119 void mouseDidMoveOverElement(const HitTestResult&, unsigned modifierFlags); |
128 void mouseDidMoveOverElement(const HitTestResult&, unsigned modifierFlags); |
120 |
129 |
121 void setToolTip(const HitTestResult&); |
130 void setToolTip(const HitTestResult&); |
122 |
131 |
123 void print(Frame*); |
132 void print(Frame*); |
124 |
133 |
125 void requestGeolocationPermissionForFrame(Frame*, Geolocation*); |
134 void requestGeolocationPermissionForFrame(Frame*, Geolocation*); |
|
135 void cancelGeolocationPermissionRequestForFrame(Frame*); |
126 |
136 |
127 void runOpenPanel(Frame*, PassRefPtr<FileChooser>); |
137 void runOpenPanel(Frame*, PassRefPtr<FileChooser>); |
|
138 void chooseIconForFiles(const Vector<String>&, PassRefPtr<FileChooser>); |
128 |
139 |
129 bool setCursor(PlatformCursorHandle); |
140 bool setCursor(PlatformCursorHandle); |
130 |
141 |
131 #if PLATFORM(MAC) |
142 #if PLATFORM(MAC) |
132 void focusNSView(NSView*); |
143 void focusNSView(NSView*); |