OLD | NEW |
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 Loading... |
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 Loading... |
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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 ChildFrameDisconnector(*document).Disconnect(); | 539 ChildFrameDisconnector(*document).Disconnect(); |
538 } | 540 } |
539 | 541 |
540 void LocalFrame::DocumentAttached() { | 542 void LocalFrame::DocumentAttached() { |
541 DCHECK(GetDocument()); | 543 DCHECK(GetDocument()); |
542 GetEditor().Clear(); | 544 GetEditor().Clear(); |
543 GetEventHandler().Clear(); | 545 GetEventHandler().Clear(); |
544 Selection().DocumentAttached(GetDocument()); | 546 Selection().DocumentAttached(GetDocument()); |
545 GetInputMethodController().DocumentAttached(GetDocument()); | 547 GetInputMethodController().DocumentAttached(GetDocument()); |
546 GetSpellChecker().DocumentAttached(GetDocument()); | 548 GetSpellChecker().DocumentAttached(GetDocument()); |
| 549 GetTextSuggestionController().DocumentAttached(GetDocument()); |
547 if (IsMainFrame()) | 550 if (IsMainFrame()) |
548 has_received_user_gesture_ = false; | 551 has_received_user_gesture_ = false; |
549 } | 552 } |
550 | 553 |
551 Frame* LocalFrame::FindFrameForNavigation(const AtomicString& name, | 554 Frame* LocalFrame::FindFrameForNavigation(const AtomicString& name, |
552 LocalFrame& active_frame) { | 555 LocalFrame& active_frame) { |
553 Frame* frame = Tree().Find(name); | 556 Frame* frame = Tree().Find(name); |
554 if (!frame || !active_frame.CanNavigate(*frame)) | 557 if (!frame || !active_frame.CanNavigate(*frame)) |
555 return nullptr; | 558 return nullptr; |
556 return frame; | 559 return frame; |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
919 navigation_scheduler_(NavigationScheduler::Create(this)), | 922 navigation_scheduler_(NavigationScheduler::Create(this)), |
920 script_controller_(ScriptController::Create( | 923 script_controller_(ScriptController::Create( |
921 *this, | 924 *this, |
922 *static_cast<LocalWindowProxyManager*>(GetWindowProxyManager()))), | 925 *static_cast<LocalWindowProxyManager*>(GetWindowProxyManager()))), |
923 editor_(Editor::Create(*this)), | 926 editor_(Editor::Create(*this)), |
924 spell_checker_(SpellChecker::Create(*this)), | 927 spell_checker_(SpellChecker::Create(*this)), |
925 selection_(FrameSelection::Create(*this)), | 928 selection_(FrameSelection::Create(*this)), |
926 event_handler_(new EventHandler(*this)), | 929 event_handler_(new EventHandler(*this)), |
927 console_(FrameConsole::Create(*this)), | 930 console_(FrameConsole::Create(*this)), |
928 input_method_controller_(InputMethodController::Create(*this)), | 931 input_method_controller_(InputMethodController::Create(*this)), |
| 932 text_suggestion_controller_(new TextSuggestionController(*this)), |
929 navigation_disable_count_(0), | 933 navigation_disable_count_(0), |
930 page_zoom_factor_(ParentPageZoomFactor(this)), | 934 page_zoom_factor_(ParentPageZoomFactor(this)), |
931 text_zoom_factor_(ParentTextZoomFactor(this)), | 935 text_zoom_factor_(ParentTextZoomFactor(this)), |
932 in_view_source_mode_(false), | 936 in_view_source_mode_(false), |
933 interface_provider_(interface_provider), | 937 interface_provider_(interface_provider), |
934 interface_registry_(interface_registry) { | 938 interface_registry_(interface_registry) { |
935 if (FrameResourceCoordinator::IsEnabled()) { | 939 if (FrameResourceCoordinator::IsEnabled()) { |
936 frame_resource_coordinator_ = | 940 frame_resource_coordinator_ = |
937 FrameResourceCoordinator::Create(interface_provider); | 941 FrameResourceCoordinator::Create(interface_provider); |
938 } | 942 } |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1239 void LocalFrame::SetViewportIntersectionFromParent( | 1243 void LocalFrame::SetViewportIntersectionFromParent( |
1240 const IntRect& viewport_intersection) { | 1244 const IntRect& viewport_intersection) { |
1241 if (remote_viewport_intersection_ != viewport_intersection) { | 1245 if (remote_viewport_intersection_ != viewport_intersection) { |
1242 remote_viewport_intersection_ = viewport_intersection; | 1246 remote_viewport_intersection_ = viewport_intersection; |
1243 if (View()) | 1247 if (View()) |
1244 View()->ScheduleAnimation(); | 1248 View()->ScheduleAnimation(); |
1245 } | 1249 } |
1246 } | 1250 } |
1247 | 1251 |
1248 } // namespace blink | 1252 } // namespace blink |
OLD | NEW |