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

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: Fix lifetime on frame detach Created 7 years, 2 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
« no previous file with comments | « Source/web/WebSharedWorkerImpl.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 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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 578
578 friend class WebView; // So WebView::Create can call our constructor 579 friend class WebView; // So WebView::Create can call our constructor
579 friend class WTF::RefCounted<WebViewImpl>; 580 friend class WTF::RefCounted<WebViewImpl>;
580 friend void setCurrentInputEventForTest(const WebInputEvent*); 581 friend void setCurrentInputEventForTest(const WebInputEvent*);
581 582
582 enum DragAction { 583 enum DragAction {
583 DragEnter, 584 DragEnter,
584 DragOver 585 DragOver
585 }; 586 };
586 587
587 WebViewImpl(WebViewClient*); 588 explicit WebViewImpl(WebViewClient*);
588 virtual ~WebViewImpl(); 589 virtual ~WebViewImpl();
589 590
590 WebTextInputType textInputType(); 591 WebTextInputType textInputType();
591 592
592 WebString inputModeOfFocusedElement(); 593 WebString inputModeOfFocusedElement();
593 594
594 // Returns true if the event was actually processed. 595 // Returns true if the event was actually processed.
595 bool keyEventDefault(const WebKeyboardEvent&); 596 bool keyEventDefault(const WebKeyboardEvent&);
596 597
597 // Returns true if the autocomple has consumed the event. 598 // Returns true if the autocomple has consumed the event.
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 inline WebViewImpl* toWebViewImpl(WebView* webView) 833 inline WebViewImpl* toWebViewImpl(WebView* webView)
833 { 834 {
834 // We have no ways to check if the specified WebView is an instance of 835 // We have no ways to check if the specified WebView is an instance of
835 // WebViewImpl because WebViewImpl is the only implementation of WebView. 836 // WebViewImpl because WebViewImpl is the only implementation of WebView.
836 return static_cast<WebViewImpl*>(webView); 837 return static_cast<WebViewImpl*>(webView);
837 } 838 }
838 839
839 } // namespace WebKit 840 } // namespace WebKit
840 841
841 #endif 842 #endif
OLDNEW
« no previous file with comments | « Source/web/WebSharedWorkerImpl.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698