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

Side by Side Diff: Source/web/WebViewImpl.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/web/WebLocalFrameImpl.cpp ('k') | Source/web/WebViewImpl.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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 virtual void setTextDirection(WebTextDirection) override; 149 virtual void setTextDirection(WebTextDirection) override;
150 virtual bool isAcceleratedCompositingActive() const override; 150 virtual bool isAcceleratedCompositingActive() const override;
151 virtual void willCloseLayerTreeView() override; 151 virtual void willCloseLayerTreeView() override;
152 virtual void didAcquirePointerLock() override; 152 virtual void didAcquirePointerLock() override;
153 virtual void didNotAcquirePointerLock() override; 153 virtual void didNotAcquirePointerLock() override;
154 virtual void didLosePointerLock() override; 154 virtual void didLosePointerLock() override;
155 virtual void didChangeWindowResizerRect() override; 155 virtual void didChangeWindowResizerRect() override;
156 156
157 // WebView methods: 157 // WebView methods:
158 virtual void setMainFrame(WebFrame*) override; 158 virtual void setMainFrame(WebFrame*) override;
159 virtual void setAutofillClient(WebAutofillClient*) override;
160 virtual void setCredentialManagerClient(WebCredentialManagerClient*) overrid e; 159 virtual void setCredentialManagerClient(WebCredentialManagerClient*) overrid e;
161 virtual void setDevToolsAgentClient(WebDevToolsAgentClient*) override; 160 virtual void setDevToolsAgentClient(WebDevToolsAgentClient*) override;
162 virtual void setPrerendererClient(WebPrerendererClient*) override; 161 virtual void setPrerendererClient(WebPrerendererClient*) override;
163 virtual void setSpellCheckClient(WebSpellCheckClient*) override; 162 virtual void setSpellCheckClient(WebSpellCheckClient*) override;
164 virtual WebSettings* settings() override; 163 virtual WebSettings* settings() override;
165 virtual WebString pageEncoding() const override; 164 virtual WebString pageEncoding() const override;
166 virtual void setPageEncoding(const WebString&) override; 165 virtual void setPageEncoding(const WebString&) override;
167 virtual bool isTransparent() const override; 166 virtual bool isTransparent() const override;
168 virtual void setIsTransparent(bool value) override; 167 virtual void setIsTransparent(bool value) override;
169 virtual void setBaseBackgroundColor(WebColor) override; 168 virtual void setBaseBackgroundColor(WebColor) override;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 // Returns the currently focused Element or null if no element has focus. 299 // Returns the currently focused Element or null if no element has focus.
301 Element* focusedElement() const; 300 Element* focusedElement() const;
302 301
303 static WebViewImpl* fromPage(Page*); 302 static WebViewImpl* fromPage(Page*);
304 303
305 WebViewClient* client() 304 WebViewClient* client()
306 { 305 {
307 return m_client; 306 return m_client;
308 } 307 }
309 308
310 WebAutofillClient* autofillClient()
311 {
312 return m_autofillClient;
313 }
314
315 WebSpellCheckClient* spellCheckClient() 309 WebSpellCheckClient* spellCheckClient()
316 { 310 {
317 return m_spellCheckClient; 311 return m_spellCheckClient;
318 } 312 }
319 313
320 // Returns the page object associated with this view. This may be null when 314 // Returns the page object associated with this view. This may be null when
321 // the page is shutting down, but will be valid at all other times. 315 // the page is shutting down, but will be valid at all other times.
322 Page* page() const 316 Page* page() const
323 { 317 {
324 return m_page.get(); 318 return m_page.get();
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 virtual void handleMouseUp(LocalFrame&, const WebMouseEvent&) override; 591 virtual void handleMouseUp(LocalFrame&, const WebMouseEvent&) override;
598 virtual bool handleMouseWheel(LocalFrame&, const WebMouseWheelEvent&) overri de; 592 virtual bool handleMouseWheel(LocalFrame&, const WebMouseWheelEvent&) overri de;
599 virtual bool handleGestureEvent(const WebGestureEvent&) override; 593 virtual bool handleGestureEvent(const WebGestureEvent&) override;
600 virtual bool handleKeyEvent(const WebKeyboardEvent&) override; 594 virtual bool handleKeyEvent(const WebKeyboardEvent&) override;
601 virtual bool handleCharEvent(const WebKeyboardEvent&) override; 595 virtual bool handleCharEvent(const WebKeyboardEvent&) override;
602 596
603 InputMethodContext* inputMethodContext(); 597 InputMethodContext* inputMethodContext();
604 WebPlugin* focusedPluginIfInputMethodSupported(LocalFrame*); 598 WebPlugin* focusedPluginIfInputMethodSupported(LocalFrame*);
605 599
606 WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.) 600 WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.)
607 WebAutofillClient* m_autofillClient;
608 WebSpellCheckClient* m_spellCheckClient; 601 WebSpellCheckClient* m_spellCheckClient;
609 602
610 ChromeClientImpl m_chromeClientImpl; 603 ChromeClientImpl m_chromeClientImpl;
611 ContextMenuClientImpl m_contextMenuClientImpl; 604 ContextMenuClientImpl m_contextMenuClientImpl;
612 DragClientImpl m_dragClientImpl; 605 DragClientImpl m_dragClientImpl;
613 EditorClientImpl m_editorClientImpl; 606 EditorClientImpl m_editorClientImpl;
614 InspectorClientImpl m_inspectorClientImpl; 607 InspectorClientImpl m_inspectorClientImpl;
615 SpellCheckerClientImpl m_spellCheckerClientImpl; 608 SpellCheckerClientImpl m_spellCheckerClientImpl;
616 StorageClientImpl m_storageClientImpl; 609 StorageClientImpl m_storageClientImpl;
617 610
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 float m_topControlsLayoutHeight; 746 float m_topControlsLayoutHeight;
754 }; 747 };
755 748
756 // We have no ways to check if the specified WebView is an instance of 749 // We have no ways to check if the specified WebView is an instance of
757 // WebViewImpl because WebViewImpl is the only implementation of WebView. 750 // WebViewImpl because WebViewImpl is the only implementation of WebView.
758 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 751 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
759 752
760 } // namespace blink 753 } // namespace blink
761 754
762 #endif 755 #endif
OLDNEW
« no previous file with comments | « Source/web/WebLocalFrameImpl.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698