Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: Source/web/ChromeClientImpl.h

Issue 707723002: Refactor Autofill for OOPIF (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: more stuff Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/page/ChromeClient.h ('k') | Source/web/ChromeClientImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google 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 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 virtual void layoutUpdated(LocalFrame*) const override; 118 virtual void layoutUpdated(LocalFrame*) const override;
119 virtual void mouseDidMoveOverElement( 119 virtual void mouseDidMoveOverElement(
120 const HitTestResult&, unsigned modifierFlags) override; 120 const HitTestResult&, unsigned modifierFlags) override;
121 virtual void setToolTip(const WTF::String& tooltipText, TextDirection) overr ide; 121 virtual void setToolTip(const WTF::String& tooltipText, TextDirection) overr ide;
122 virtual void dispatchViewportPropertiesDidChange(const ViewportDescription&) const override; 122 virtual void dispatchViewportPropertiesDidChange(const ViewportDescription&) const override;
123 virtual void print(LocalFrame*) override; 123 virtual void print(LocalFrame*) override;
124 virtual void annotatedRegionsChanged() override; 124 virtual void annotatedRegionsChanged() override;
125 virtual bool paintCustomOverhangArea(GraphicsContext*, const IntRect&, const IntRect&, const IntRect&) override; 125 virtual bool paintCustomOverhangArea(GraphicsContext*, const IntRect&, const IntRect&, const IntRect&) override;
126 virtual PassOwnPtrWillBeRawPtr<ColorChooser> createColorChooser(LocalFrame*, ColorChooserClient*, const Color&) override; 126 virtual PassOwnPtrWillBeRawPtr<ColorChooser> createColorChooser(LocalFrame*, ColorChooserClient*, const Color&) override;
127 virtual PassRefPtr<DateTimeChooser> openDateTimeChooser(DateTimeChooserClien t*, const DateTimeChooserParameters&) override; 127 virtual PassRefPtr<DateTimeChooser> openDateTimeChooser(DateTimeChooserClien t*, const DateTimeChooserParameters&) override;
128 virtual void openTextDataListChooser(HTMLInputElement&) override;
129 virtual void runOpenPanel(LocalFrame*, PassRefPtr<FileChooser>) override; 128 virtual void runOpenPanel(LocalFrame*, PassRefPtr<FileChooser>) override;
130 virtual void enumerateChosenDirectory(FileChooser*) override; 129 virtual void enumerateChosenDirectory(FileChooser*) override;
131 virtual void setCursor(const Cursor&) override; 130 virtual void setCursor(const Cursor&) override;
132 virtual void needTouchEvents(bool needTouchEvents) override; 131 virtual void needTouchEvents(bool needTouchEvents) override;
133 virtual void setTouchAction(TouchAction) override; 132 virtual void setTouchAction(TouchAction) override;
134 133
135 virtual GraphicsLayerFactory* graphicsLayerFactory() const override; 134 virtual GraphicsLayerFactory* graphicsLayerFactory() const override;
136 135
137 // Pass 0 as the GraphicsLayer to detatch the root layer. 136 // Pass 0 as the GraphicsLayer to detatch the root layer.
138 virtual void attachRootGraphicsLayer(GraphicsLayer*) override; 137 virtual void attachRootGraphicsLayer(GraphicsLayer*) override;
(...skipping 18 matching lines...) Expand all
157 void closePagePopup(PagePopup*); 156 void closePagePopup(PagePopup*);
158 virtual void setPagePopupDriver(PagePopupDriver*) override; 157 virtual void setPagePopupDriver(PagePopupDriver*) override;
159 virtual void resetPagePopupDriver() override; 158 virtual void resetPagePopupDriver() override;
160 virtual PagePopupDriver* pagePopupDriver() const override { return m_pagePop upDriver; } 159 virtual PagePopupDriver* pagePopupDriver() const override { return m_pagePop upDriver; }
161 160
162 virtual bool shouldRunModalDialogDuringPageDismissal(const DialogType&, cons t String& dialogMessage, Document::PageDismissalType) const override; 161 virtual bool shouldRunModalDialogDuringPageDismissal(const DialogType&, cons t String& dialogMessage, Document::PageDismissalType) const override;
163 162
164 virtual bool requestPointerLock() override; 163 virtual bool requestPointerLock() override;
165 virtual void requestPointerUnlock() override; 164 virtual void requestPointerUnlock() override;
166 165
167 virtual void didAssociateFormControls(const WillBeHeapVector<RefPtrWillBeMem ber<Element> >&) override; 166 // AutofillClient pass throughs:
167 virtual void didAssociateFormControls(const WillBeHeapVector<RefPtrWillBeMem ber<Element> >&, LocalFrame*) override;
168 virtual void handleKeyboardEventOnTextField(HTMLInputElement&, KeyboardEvent &) override;
168 virtual void didChangeValueInTextField(HTMLFormControlElement&) override; 169 virtual void didChangeValueInTextField(HTMLFormControlElement&) override;
169 virtual void didEndEditingOnTextField(HTMLInputElement&) override; 170 virtual void didEndEditingOnTextField(HTMLInputElement&) override;
170 virtual void handleKeyboardEventOnTextField(HTMLInputElement&, KeyboardEvent &) override; 171 virtual void openTextDataListChooser(HTMLInputElement&) override;
171 172
172 virtual void didCancelCompositionOnSelectionChange() override; 173 virtual void didCancelCompositionOnSelectionChange() override;
173 virtual void willSetInputMethodState() override; 174 virtual void willSetInputMethodState() override;
174 virtual void didUpdateTextOfFocusedElementByNonUserInput() override; 175 virtual void didUpdateTextOfFocusedElementByNonUserInput() override;
175 virtual void showImeIfNeeded() override; 176 virtual void showImeIfNeeded() override;
176 177
177 private: 178 private:
178 virtual bool isChromeClientImpl() const override { return true; } 179 virtual bool isChromeClientImpl() const override { return true; }
179 180
180 WebNavigationPolicy getNavigationPolicy(); 181 WebNavigationPolicy getNavigationPolicy();
181 void setCursor(const WebCursorInfo&); 182 void setCursor(const WebCursorInfo&);
182 183
183 WebViewImpl* m_webView; // weak pointer 184 WebViewImpl* m_webView; // weak pointer
184 bool m_toolbarsVisible; 185 bool m_toolbarsVisible;
185 bool m_statusbarVisible; 186 bool m_statusbarVisible;
186 bool m_scrollbarsVisible; 187 bool m_scrollbarsVisible;
187 bool m_menubarVisible; 188 bool m_menubarVisible;
188 bool m_resizable; 189 bool m_resizable;
189 190
190 PagePopupDriver* m_pagePopupDriver; 191 PagePopupDriver* m_pagePopupDriver;
191 }; 192 };
192 193
193 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient Impl(), client.isChromeClientImpl()); 194 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient Impl(), client.isChromeClientImpl());
194 195
195 } // namespace blink 196 } // namespace blink
196 197
197 #endif 198 #endif
OLDNEW
« no previous file with comments | « Source/core/page/ChromeClient.h ('k') | Source/web/ChromeClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698