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: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 2931443003: Add support for Android spellcheck menu in Chrome/WebViews (Closed)
Patch Set: Respond to yosin@'s comments Created 3 years, 6 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) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Simon Hausmann <hausmann@kde.org> 5 * 2000 Simon Hausmann <hausmann@kde.org>
6 * 2000 Stefan Schimanski <1Stein@gmx.de> 6 * 2000 Stefan Schimanski <1Stein@gmx.de>
7 * 2001 George Staikos <staikos@kde.org> 7 * 2001 George Staikos <staikos@kde.org>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
9 * rights reserved. 9 * rights reserved.
10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> 10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com>
(...skipping 25 matching lines...) Expand all
36 #include "core/CoreProbeSink.h" 36 #include "core/CoreProbeSink.h"
37 #include "core/dom/ChildFrameDisconnector.h" 37 #include "core/dom/ChildFrameDisconnector.h"
38 #include "core/dom/DocumentType.h" 38 #include "core/dom/DocumentType.h"
39 #include "core/dom/StyleChangeReason.h" 39 #include "core/dom/StyleChangeReason.h"
40 #include "core/editing/EditingUtilities.h" 40 #include "core/editing/EditingUtilities.h"
41 #include "core/editing/Editor.h" 41 #include "core/editing/Editor.h"
42 #include "core/editing/FrameSelection.h" 42 #include "core/editing/FrameSelection.h"
43 #include "core/editing/InputMethodController.h" 43 #include "core/editing/InputMethodController.h"
44 #include "core/editing/serializers/Serialization.h" 44 #include "core/editing/serializers/Serialization.h"
45 #include "core/editing/spellcheck/SpellChecker.h" 45 #include "core/editing/spellcheck/SpellChecker.h"
46 #include "core/editing/suggestion/TextSuggestionController.h"
46 #include "core/events/Event.h" 47 #include "core/events/Event.h"
47 #include "core/frame/ContentSettingsClient.h" 48 #include "core/frame/ContentSettingsClient.h"
48 #include "core/frame/EventHandlerRegistry.h" 49 #include "core/frame/EventHandlerRegistry.h"
49 #include "core/frame/FrameConsole.h" 50 #include "core/frame/FrameConsole.h"
50 #include "core/frame/LocalDOMWindow.h" 51 #include "core/frame/LocalDOMWindow.h"
51 #include "core/frame/LocalFrameClient.h" 52 #include "core/frame/LocalFrameClient.h"
52 #include "core/frame/LocalFrameView.h" 53 #include "core/frame/LocalFrameView.h"
53 #include "core/frame/PerformanceMonitor.h" 54 #include "core/frame/PerformanceMonitor.h"
54 #include "core/frame/Settings.h" 55 #include "core/frame/Settings.h"
55 #include "core/frame/VisualViewport.h" 56 #include "core/frame/VisualViewport.h"
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 visitor->Trace(dom_window_); 367 visitor->Trace(dom_window_);
367 visitor->Trace(page_popup_owner_); 368 visitor->Trace(page_popup_owner_);
368 visitor->Trace(script_controller_); 369 visitor->Trace(script_controller_);
369 visitor->Trace(editor_); 370 visitor->Trace(editor_);
370 visitor->Trace(spell_checker_); 371 visitor->Trace(spell_checker_);
371 visitor->Trace(selection_); 372 visitor->Trace(selection_);
372 visitor->Trace(event_handler_); 373 visitor->Trace(event_handler_);
373 visitor->Trace(console_); 374 visitor->Trace(console_);
374 visitor->Trace(input_method_controller_); 375 visitor->Trace(input_method_controller_);
375 visitor->Trace(frame_resource_coordinator_); 376 visitor->Trace(frame_resource_coordinator_);
377 visitor->Trace(text_suggestion_controller_);
376 Frame::Trace(visitor); 378 Frame::Trace(visitor);
377 Supplementable<LocalFrame>::Trace(visitor); 379 Supplementable<LocalFrame>::Trace(visitor);
378 } 380 }
379 381
380 void LocalFrame::Navigate(Document& origin_document, 382 void LocalFrame::Navigate(Document& origin_document,
381 const KURL& url, 383 const KURL& url,
382 bool replace_current_item, 384 bool replace_current_item,
383 UserGestureStatus user_gesture_status) { 385 UserGestureStatus user_gesture_status) {
384 navigation_scheduler_->ScheduleLocationChange(&origin_document, url, 386 navigation_scheduler_->ScheduleLocationChange(&origin_document, url,
385 replace_current_item); 387 replace_current_item);
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 navigation_scheduler_(NavigationScheduler::Create(this)), 900 navigation_scheduler_(NavigationScheduler::Create(this)),
899 script_controller_(ScriptController::Create( 901 script_controller_(ScriptController::Create(
900 *this, 902 *this,
901 *static_cast<LocalWindowProxyManager*>(GetWindowProxyManager()))), 903 *static_cast<LocalWindowProxyManager*>(GetWindowProxyManager()))),
902 editor_(Editor::Create(*this)), 904 editor_(Editor::Create(*this)),
903 spell_checker_(SpellChecker::Create(*this)), 905 spell_checker_(SpellChecker::Create(*this)),
904 selection_(FrameSelection::Create(*this)), 906 selection_(FrameSelection::Create(*this)),
905 event_handler_(new EventHandler(*this)), 907 event_handler_(new EventHandler(*this)),
906 console_(FrameConsole::Create(*this)), 908 console_(FrameConsole::Create(*this)),
907 input_method_controller_(InputMethodController::Create(*this)), 909 input_method_controller_(InputMethodController::Create(*this)),
910 text_suggestion_controller_(new TextSuggestionController(*this)),
908 navigation_disable_count_(0), 911 navigation_disable_count_(0),
909 page_zoom_factor_(ParentPageZoomFactor(this)), 912 page_zoom_factor_(ParentPageZoomFactor(this)),
910 text_zoom_factor_(ParentTextZoomFactor(this)), 913 text_zoom_factor_(ParentTextZoomFactor(this)),
911 in_view_source_mode_(false), 914 in_view_source_mode_(false),
912 interface_provider_(interface_provider), 915 interface_provider_(interface_provider),
913 interface_registry_(interface_registry) { 916 interface_registry_(interface_registry) {
914 if (FrameResourceCoordinator::IsEnabled()) { 917 if (FrameResourceCoordinator::IsEnabled()) {
915 frame_resource_coordinator_ = 918 frame_resource_coordinator_ =
916 FrameResourceCoordinator::Create(interface_provider); 919 FrameResourceCoordinator::Create(interface_provider);
917 } 920 }
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
1218 void LocalFrame::SetViewportIntersectionFromParent( 1221 void LocalFrame::SetViewportIntersectionFromParent(
1219 const IntRect& viewport_intersection) { 1222 const IntRect& viewport_intersection) {
1220 if (remote_viewport_intersection_ != viewport_intersection) { 1223 if (remote_viewport_intersection_ != viewport_intersection) {
1221 remote_viewport_intersection_ = viewport_intersection; 1224 remote_viewport_intersection_ = viewport_intersection;
1222 if (View()) 1225 if (View())
1223 View()->ScheduleAnimation(); 1226 View()->ScheduleAnimation();
1224 } 1227 }
1225 } 1228 }
1226 1229
1227 } // namespace blink 1230 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698