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

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

Issue 23506013: Make the embedder responsible for creating the WebFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: address comments Created 7 years, 3 months 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
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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 class WebSettingsImpl; 121 class WebSettingsImpl;
122 class WebTouchEvent; 122 class WebTouchEvent;
123 class FullscreenController; 123 class FullscreenController;
124 124
125 class WebViewImpl : public WebView 125 class WebViewImpl : public WebView
126 , public RefCounted<WebViewImpl> 126 , public RefCounted<WebViewImpl>
127 , public WebGestureCurveTarget 127 , public WebGestureCurveTarget
128 , public WebCore::PagePopupDriver 128 , public WebCore::PagePopupDriver
129 , public PageWidgetEventHandler { 129 , public PageWidgetEventHandler {
130 public: 130 public:
131 static WebViewImpl* create(WebViewClient*);
131 132
132 // WebWidget methods: 133 // WebWidget methods:
133 virtual void close(); 134 virtual void close();
134 virtual WebSize size(); 135 virtual WebSize size();
135 virtual void willStartLiveResize(); 136 virtual void willStartLiveResize();
136 virtual void resize(const WebSize&); 137 virtual void resize(const WebSize&);
137 virtual void willEndLiveResize(); 138 virtual void willEndLiveResize();
138 virtual void willEnterFullScreen(); 139 virtual void willEnterFullScreen();
139 virtual void didEnterFullScreen(); 140 virtual void didEnterFullScreen();
140 virtual void willExitFullScreen(); 141 virtual void willExitFullScreen();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 virtual void setTextDirection(WebTextDirection direction); 175 virtual void setTextDirection(WebTextDirection direction);
175 virtual bool isAcceleratedCompositingActive() const; 176 virtual bool isAcceleratedCompositingActive() const;
176 virtual void willCloseLayerTreeView(); 177 virtual void willCloseLayerTreeView();
177 virtual void didAcquirePointerLock(); 178 virtual void didAcquirePointerLock();
178 virtual void didNotAcquirePointerLock(); 179 virtual void didNotAcquirePointerLock();
179 virtual void didLosePointerLock(); 180 virtual void didLosePointerLock();
180 virtual void didChangeWindowResizerRect(); 181 virtual void didChangeWindowResizerRect();
181 virtual void didExitCompositingMode(); 182 virtual void didExitCompositingMode();
182 183
183 // WebView methods: 184 // WebView methods:
185 virtual void setMainFrame(WebFrame*);
184 virtual void initializeMainFrame(WebFrameClient*); 186 virtual void initializeMainFrame(WebFrameClient*);
185 virtual void initializeHelperPluginFrame(WebFrameClient*);
186 virtual void setAutofillClient(WebAutofillClient*); 187 virtual void setAutofillClient(WebAutofillClient*);
187 virtual void setDevToolsAgentClient(WebDevToolsAgentClient*); 188 virtual void setDevToolsAgentClient(WebDevToolsAgentClient*);
188 virtual void setPermissionClient(WebPermissionClient*); 189 virtual void setPermissionClient(WebPermissionClient*);
189 virtual void setPrerendererClient(WebPrerendererClient*) OVERRIDE; 190 virtual void setPrerendererClient(WebPrerendererClient*) OVERRIDE;
190 virtual void setSpellCheckClient(WebSpellCheckClient*); 191 virtual void setSpellCheckClient(WebSpellCheckClient*);
191 virtual void setValidationMessageClient(WebValidationMessageClient*) OVERRID E; 192 virtual void setValidationMessageClient(WebValidationMessageClient*) OVERRID E;
192 virtual void setPasswordGeneratorClient(WebPasswordGeneratorClient*) OVERRID E; 193 virtual void setPasswordGeneratorClient(WebPasswordGeneratorClient*) OVERRID E;
193 virtual WebSettings* settings(); 194 virtual WebSettings* settings();
194 virtual WebString pageEncoding() const; 195 virtual WebString pageEncoding() const;
195 virtual void setPageEncoding(const WebString& encoding); 196 virtual void setPageEncoding(const WebString& encoding);
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 576
576 friend class WebView; // So WebView::Create can call our constructor 577 friend class WebView; // So WebView::Create can call our constructor
577 friend class WTF::RefCounted<WebViewImpl>; 578 friend class WTF::RefCounted<WebViewImpl>;
578 friend void setCurrentInputEventForTest(const WebInputEvent*); 579 friend void setCurrentInputEventForTest(const WebInputEvent*);
579 580
580 enum DragAction { 581 enum DragAction {
581 DragEnter, 582 DragEnter,
582 DragOver 583 DragOver
583 }; 584 };
584 585
585 WebViewImpl(WebViewClient*); 586 explicit WebViewImpl(WebViewClient*);
586 virtual ~WebViewImpl(); 587 virtual ~WebViewImpl();
587 588
588 WebTextInputType textInputType(); 589 WebTextInputType textInputType();
589 590
590 WebString inputModeOfFocusedElement(); 591 WebString inputModeOfFocusedElement();
591 592
592 // Returns true if the event was actually processed. 593 // Returns true if the event was actually processed.
593 bool keyEventDefault(const WebKeyboardEvent&); 594 bool keyEventDefault(const WebKeyboardEvent&);
594 595
595 // Returns true if the autocomple has consumed the event. 596 // Returns true if the autocomple has consumed the event.
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 inline WebViewImpl* toWebViewImpl(WebView* webView) 831 inline WebViewImpl* toWebViewImpl(WebView* webView)
831 { 832 {
832 // We have no ways to check if the specified WebView is an instance of 833 // We have no ways to check if the specified WebView is an instance of
833 // WebViewImpl because WebViewImpl is the only implementation of WebView. 834 // WebViewImpl because WebViewImpl is the only implementation of WebView.
834 return static_cast<WebViewImpl*>(webView); 835 return static_cast<WebViewImpl*>(webView);
835 } 836 }
836 837
837 } // namespace WebKit 838 } // namespace WebKit
838 839
839 #endif 840 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698