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

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: Remove leftover traces Created 3 years, 5 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/html/HTMLFrameElementBase.h" 56 #include "core/html/HTMLFrameElementBase.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 visitor->Trace(dom_window_); 228 visitor->Trace(dom_window_);
228 visitor->Trace(page_popup_owner_); 229 visitor->Trace(page_popup_owner_);
229 visitor->Trace(script_controller_); 230 visitor->Trace(script_controller_);
230 visitor->Trace(editor_); 231 visitor->Trace(editor_);
231 visitor->Trace(spell_checker_); 232 visitor->Trace(spell_checker_);
232 visitor->Trace(selection_); 233 visitor->Trace(selection_);
233 visitor->Trace(event_handler_); 234 visitor->Trace(event_handler_);
234 visitor->Trace(console_); 235 visitor->Trace(console_);
235 visitor->Trace(input_method_controller_); 236 visitor->Trace(input_method_controller_);
236 visitor->Trace(frame_resource_coordinator_); 237 visitor->Trace(frame_resource_coordinator_);
238 visitor->Trace(text_suggestion_controller_);
237 Frame::Trace(visitor); 239 Frame::Trace(visitor);
238 Supplementable<LocalFrame>::Trace(visitor); 240 Supplementable<LocalFrame>::Trace(visitor);
239 } 241 }
240 242
241 void LocalFrame::Navigate(Document& origin_document, 243 void LocalFrame::Navigate(Document& origin_document,
242 const KURL& url, 244 const KURL& url,
243 bool replace_current_item, 245 bool replace_current_item,
244 UserGestureStatus user_gesture_status) { 246 UserGestureStatus user_gesture_status) {
245 navigation_scheduler_->ScheduleLocationChange(&origin_document, url, 247 navigation_scheduler_->ScheduleLocationChange(&origin_document, url,
246 replace_current_item); 248 replace_current_item);
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 ChildFrameDisconnector(*document).Disconnect(); 390 ChildFrameDisconnector(*document).Disconnect();
389 } 391 }
390 392
391 void LocalFrame::DocumentAttached() { 393 void LocalFrame::DocumentAttached() {
392 DCHECK(GetDocument()); 394 DCHECK(GetDocument());
393 GetEditor().Clear(); 395 GetEditor().Clear();
394 GetEventHandler().Clear(); 396 GetEventHandler().Clear();
395 Selection().DocumentAttached(GetDocument()); 397 Selection().DocumentAttached(GetDocument());
396 GetInputMethodController().DocumentAttached(GetDocument()); 398 GetInputMethodController().DocumentAttached(GetDocument());
397 GetSpellChecker().DocumentAttached(GetDocument()); 399 GetSpellChecker().DocumentAttached(GetDocument());
400 GetTextSuggestionController().DocumentAttached(GetDocument());
398 if (IsMainFrame()) 401 if (IsMainFrame())
399 has_received_user_gesture_ = false; 402 has_received_user_gesture_ = false;
400 } 403 }
401 404
402 Frame* LocalFrame::FindFrameForNavigation(const AtomicString& name, 405 Frame* LocalFrame::FindFrameForNavigation(const AtomicString& name,
403 LocalFrame& active_frame) { 406 LocalFrame& active_frame) {
404 Frame* frame = Tree().Find(name); 407 Frame* frame = Tree().Find(name);
405 if (!frame || !active_frame.CanNavigate(*frame)) 408 if (!frame || !active_frame.CanNavigate(*frame))
406 return nullptr; 409 return nullptr;
407 return frame; 410 return frame;
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 navigation_scheduler_(NavigationScheduler::Create(this)), 743 navigation_scheduler_(NavigationScheduler::Create(this)),
741 script_controller_(ScriptController::Create( 744 script_controller_(ScriptController::Create(
742 *this, 745 *this,
743 *static_cast<LocalWindowProxyManager*>(GetWindowProxyManager()))), 746 *static_cast<LocalWindowProxyManager*>(GetWindowProxyManager()))),
744 editor_(Editor::Create(*this)), 747 editor_(Editor::Create(*this)),
745 spell_checker_(SpellChecker::Create(*this)), 748 spell_checker_(SpellChecker::Create(*this)),
746 selection_(FrameSelection::Create(*this)), 749 selection_(FrameSelection::Create(*this)),
747 event_handler_(new EventHandler(*this)), 750 event_handler_(new EventHandler(*this)),
748 console_(FrameConsole::Create(*this)), 751 console_(FrameConsole::Create(*this)),
749 input_method_controller_(InputMethodController::Create(*this)), 752 input_method_controller_(InputMethodController::Create(*this)),
753 text_suggestion_controller_(new TextSuggestionController(*this)),
750 navigation_disable_count_(0), 754 navigation_disable_count_(0),
751 page_zoom_factor_(ParentPageZoomFactor(this)), 755 page_zoom_factor_(ParentPageZoomFactor(this)),
752 text_zoom_factor_(ParentTextZoomFactor(this)), 756 text_zoom_factor_(ParentTextZoomFactor(this)),
753 in_view_source_mode_(false), 757 in_view_source_mode_(false),
754 interface_provider_(interface_provider), 758 interface_provider_(interface_provider),
755 interface_registry_(interface_registry) { 759 interface_registry_(interface_registry) {
756 if (FrameResourceCoordinator::IsEnabled()) { 760 if (FrameResourceCoordinator::IsEnabled()) {
757 frame_resource_coordinator_ = 761 frame_resource_coordinator_ =
758 FrameResourceCoordinator::Create(interface_provider); 762 FrameResourceCoordinator::Create(interface_provider);
759 } 763 }
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
1080 void LocalFrame::SetViewportIntersectionFromParent( 1084 void LocalFrame::SetViewportIntersectionFromParent(
1081 const IntRect& viewport_intersection) { 1085 const IntRect& viewport_intersection) {
1082 if (remote_viewport_intersection_ != viewport_intersection) { 1086 if (remote_viewport_intersection_ != viewport_intersection) {
1083 remote_viewport_intersection_ = viewport_intersection; 1087 remote_viewport_intersection_ = viewport_intersection;
1084 if (View()) 1088 if (View())
1085 View()->ScheduleAnimation(); 1089 View()->ScheduleAnimation();
1086 } 1090 }
1087 } 1091 }
1088 1092
1089 } // namespace blink 1093 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698