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

Side by Side Diff: webkit/glue/webview_impl.h

Issue 160565: Adds support for the os x spelling panel to chromium. Users can... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/webview_delegate.h ('k') | webkit/glue/webview_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_GLUE_WEBVIEW_IMPL_H_ 5 #ifndef WEBKIT_GLUE_WEBVIEW_IMPL_H_
6 #define WEBKIT_GLUE_WEBVIEW_IMPL_H_ 6 #define WEBKIT_GLUE_WEBVIEW_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 const WebKit::WebDragData& drag_data, 235 const WebKit::WebDragData& drag_data,
236 WebKit::WebDragOperationsMask drag_source_operation_mask); 236 WebKit::WebDragOperationsMask drag_source_operation_mask);
237 237
238 // Hides the autocomplete popup if it is showing. 238 // Hides the autocomplete popup if it is showing.
239 void HideAutoCompletePopup(); 239 void HideAutoCompletePopup();
240 240
241 // Converts |x|, |y| from window coordinates to contents coordinates and gets 241 // Converts |x|, |y| from window coordinates to contents coordinates and gets
242 // the underlying Node for them. 242 // the underlying Node for them.
243 WebCore::Node* GetNodeForWindowPos(int x, int y); 243 WebCore::Node* GetNodeForWindowPos(int x, int y);
244 244
245 virtual void SetSpellingPanelVisibility(bool is_visible);
246 virtual bool GetSpellingPanelVisibility();
247
245 #if ENABLE(NOTIFICATIONS) 248 #if ENABLE(NOTIFICATIONS)
246 // Returns the provider of desktop notifications. 249 // Returns the provider of desktop notifications.
247 WebKit::NotificationPresenterImpl* GetNotificationPresenter(); 250 WebKit::NotificationPresenterImpl* GetNotificationPresenter();
248 #endif 251 #endif
249 252
250 protected: 253 protected:
251 friend class WebView; // So WebView::Create can call our constructor 254 friend class WebView; // So WebView::Create can call our constructor
252 friend class base::RefCounted<WebViewImpl>; 255 friend class base::RefCounted<WebViewImpl>;
253 256
254 // ImageResourceFetcher::Callback. 257 // ImageResourceFetcher::Callback.
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 bool autocomplete_popup_showing_; 390 bool autocomplete_popup_showing_;
388 391
389 // The autocomplete client. 392 // The autocomplete client.
390 scoped_ptr<AutocompletePopupMenuClient> autocomplete_popup_client_; 393 scoped_ptr<AutocompletePopupMenuClient> autocomplete_popup_client_;
391 394
392 scoped_ptr<WebDevToolsAgentImpl> devtools_agent_; 395 scoped_ptr<WebDevToolsAgentImpl> devtools_agent_;
393 396
394 // Whether the webview is rendering transparently. 397 // Whether the webview is rendering transparently.
395 bool is_transparent_; 398 bool is_transparent_;
396 399
400 // Whether the spelling panel is currently being displayed or not.
401 bool spelling_panel_is_visible_;
402
397 // Inspector settings. 403 // Inspector settings.
398 std::wstring inspector_settings_; 404 std::wstring inspector_settings_;
399 405
400 #if ENABLE(NOTIFICATIONS) 406 #if ENABLE(NOTIFICATIONS)
401 // The provider of desktop notifications; 407 // The provider of desktop notifications;
402 WebKit::NotificationPresenterImpl notification_presenter_; 408 WebKit::NotificationPresenterImpl notification_presenter_;
403 #endif 409 #endif
404 410
405 // HACK: current_input_event is for ChromeClientImpl::show(), until we can fix 411 // HACK: current_input_event is for ChromeClientImpl::show(), until we can fix
406 // WebKit to pass enough information up into ChromeClient::show() so we can 412 // WebKit to pass enough information up into ChromeClient::show() so we can
407 // decide if the window.open event was caused by a middle-mouse click 413 // decide if the window.open event was caused by a middle-mouse click
408 public: 414 public:
409 static const WebKit::WebInputEvent* current_input_event() { 415 static const WebKit::WebInputEvent* current_input_event() {
410 return g_current_input_event; 416 return g_current_input_event;
411 } 417 }
412 private: 418 private:
413 static const WebKit::WebInputEvent* g_current_input_event; 419 static const WebKit::WebInputEvent* g_current_input_event;
414 420
415 DISALLOW_COPY_AND_ASSIGN(WebViewImpl); 421 DISALLOW_COPY_AND_ASSIGN(WebViewImpl);
416 }; 422 };
417 423
418 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H_ 424 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/glue/webview_delegate.h ('k') | webkit/glue/webview_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698