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

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: Rebase on moving color to LayoutTheme, do beforeinput stuff 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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 visitor->Trace(dom_window_); 376 visitor->Trace(dom_window_);
376 visitor->Trace(page_popup_owner_); 377 visitor->Trace(page_popup_owner_);
377 visitor->Trace(script_controller_); 378 visitor->Trace(script_controller_);
378 visitor->Trace(editor_); 379 visitor->Trace(editor_);
379 visitor->Trace(spell_checker_); 380 visitor->Trace(spell_checker_);
380 visitor->Trace(selection_); 381 visitor->Trace(selection_);
381 visitor->Trace(event_handler_); 382 visitor->Trace(event_handler_);
382 visitor->Trace(console_); 383 visitor->Trace(console_);
383 visitor->Trace(input_method_controller_); 384 visitor->Trace(input_method_controller_);
384 visitor->Trace(frame_resource_coordinator_); 385 visitor->Trace(frame_resource_coordinator_);
386 visitor->Trace(text_suggestion_controller_);
385 Frame::Trace(visitor); 387 Frame::Trace(visitor);
386 Supplementable<LocalFrame>::Trace(visitor); 388 Supplementable<LocalFrame>::Trace(visitor);
387 } 389 }
388 390
389 void LocalFrame::Navigate(Document& origin_document, 391 void LocalFrame::Navigate(Document& origin_document,
390 const KURL& url, 392 const KURL& url,
391 bool replace_current_item, 393 bool replace_current_item,
392 UserGestureStatus user_gesture_status) { 394 UserGestureStatus user_gesture_status) {
393 navigation_scheduler_->ScheduleLocationChange(&origin_document, url, 395 navigation_scheduler_->ScheduleLocationChange(&origin_document, url,
394 replace_current_item); 396 replace_current_item);
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 navigation_scheduler_(NavigationScheduler::Create(this)), 916 navigation_scheduler_(NavigationScheduler::Create(this)),
915 script_controller_(ScriptController::Create( 917 script_controller_(ScriptController::Create(
916 *this, 918 *this,
917 *static_cast<LocalWindowProxyManager*>(GetWindowProxyManager()))), 919 *static_cast<LocalWindowProxyManager*>(GetWindowProxyManager()))),
918 editor_(Editor::Create(*this)), 920 editor_(Editor::Create(*this)),
919 spell_checker_(SpellChecker::Create(*this)), 921 spell_checker_(SpellChecker::Create(*this)),
920 selection_(FrameSelection::Create(*this)), 922 selection_(FrameSelection::Create(*this)),
921 event_handler_(new EventHandler(*this)), 923 event_handler_(new EventHandler(*this)),
922 console_(FrameConsole::Create(*this)), 924 console_(FrameConsole::Create(*this)),
923 input_method_controller_(InputMethodController::Create(*this)), 925 input_method_controller_(InputMethodController::Create(*this)),
926 text_suggestion_controller_(new TextSuggestionController(*this)),
924 navigation_disable_count_(0), 927 navigation_disable_count_(0),
925 page_zoom_factor_(ParentPageZoomFactor(this)), 928 page_zoom_factor_(ParentPageZoomFactor(this)),
926 text_zoom_factor_(ParentTextZoomFactor(this)), 929 text_zoom_factor_(ParentTextZoomFactor(this)),
927 in_view_source_mode_(false), 930 in_view_source_mode_(false),
928 interface_provider_(interface_provider), 931 interface_provider_(interface_provider),
929 interface_registry_(interface_registry) { 932 interface_registry_(interface_registry) {
930 if (FrameResourceCoordinator::IsEnabled()) { 933 if (FrameResourceCoordinator::IsEnabled()) {
931 frame_resource_coordinator_ = 934 frame_resource_coordinator_ =
932 FrameResourceCoordinator::Create(interface_provider); 935 FrameResourceCoordinator::Create(interface_provider);
933 } 936 }
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
1234 void LocalFrame::SetViewportIntersectionFromParent( 1237 void LocalFrame::SetViewportIntersectionFromParent(
1235 const IntRect& viewport_intersection) { 1238 const IntRect& viewport_intersection) {
1236 if (remote_viewport_intersection_ != viewport_intersection) { 1239 if (remote_viewport_intersection_ != viewport_intersection) {
1237 remote_viewport_intersection_ = viewport_intersection; 1240 remote_viewport_intersection_ = viewport_intersection;
1238 if (View()) 1241 if (View())
1239 View()->ScheduleAnimation(); 1242 View()->ScheduleAnimation();
1240 } 1243 }
1241 } 1244 }
1242 1245
1243 } // namespace blink 1246 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698