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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 visitor->Trace(dom_window_); | 380 visitor->Trace(dom_window_); |
380 visitor->Trace(page_popup_owner_); | 381 visitor->Trace(page_popup_owner_); |
381 visitor->Trace(script_controller_); | 382 visitor->Trace(script_controller_); |
382 visitor->Trace(editor_); | 383 visitor->Trace(editor_); |
383 visitor->Trace(spell_checker_); | 384 visitor->Trace(spell_checker_); |
384 visitor->Trace(selection_); | 385 visitor->Trace(selection_); |
385 visitor->Trace(event_handler_); | 386 visitor->Trace(event_handler_); |
386 visitor->Trace(console_); | 387 visitor->Trace(console_); |
387 visitor->Trace(input_method_controller_); | 388 visitor->Trace(input_method_controller_); |
388 visitor->Trace(frame_resource_coordinator_); | 389 visitor->Trace(frame_resource_coordinator_); |
| 390 visitor->Trace(text_suggestion_controller_); |
389 Frame::Trace(visitor); | 391 Frame::Trace(visitor); |
390 Supplementable<LocalFrame>::Trace(visitor); | 392 Supplementable<LocalFrame>::Trace(visitor); |
391 } | 393 } |
392 | 394 |
393 void LocalFrame::Navigate(Document& origin_document, | 395 void LocalFrame::Navigate(Document& origin_document, |
394 const KURL& url, | 396 const KURL& url, |
395 bool replace_current_item, | 397 bool replace_current_item, |
396 UserGestureStatus user_gesture_status) { | 398 UserGestureStatus user_gesture_status) { |
397 navigation_scheduler_->ScheduleLocationChange(&origin_document, url, | 399 navigation_scheduler_->ScheduleLocationChange(&origin_document, url, |
398 replace_current_item); | 400 replace_current_item); |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 ChildFrameDisconnector(*document).Disconnect(); | 543 ChildFrameDisconnector(*document).Disconnect(); |
542 } | 544 } |
543 | 545 |
544 void LocalFrame::DocumentAttached() { | 546 void LocalFrame::DocumentAttached() { |
545 DCHECK(GetDocument()); | 547 DCHECK(GetDocument()); |
546 GetEditor().Clear(); | 548 GetEditor().Clear(); |
547 GetEventHandler().Clear(); | 549 GetEventHandler().Clear(); |
548 Selection().DocumentAttached(GetDocument()); | 550 Selection().DocumentAttached(GetDocument()); |
549 GetInputMethodController().DocumentAttached(GetDocument()); | 551 GetInputMethodController().DocumentAttached(GetDocument()); |
550 GetSpellChecker().DocumentAttached(GetDocument()); | 552 GetSpellChecker().DocumentAttached(GetDocument()); |
| 553 GetTextSuggestionController().DocumentAttached(GetDocument()); |
551 if (IsMainFrame()) | 554 if (IsMainFrame()) |
552 has_received_user_gesture_ = false; | 555 has_received_user_gesture_ = false; |
553 } | 556 } |
554 | 557 |
555 Frame* LocalFrame::FindFrameForNavigation(const AtomicString& name, | 558 Frame* LocalFrame::FindFrameForNavigation(const AtomicString& name, |
556 LocalFrame& active_frame) { | 559 LocalFrame& active_frame) { |
557 Frame* frame = Tree().Find(name); | 560 Frame* frame = Tree().Find(name); |
558 if (!frame || !active_frame.CanNavigate(*frame)) | 561 if (!frame || !active_frame.CanNavigate(*frame)) |
559 return nullptr; | 562 return nullptr; |
560 return frame; | 563 return frame; |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
929 navigation_scheduler_(NavigationScheduler::Create(this)), | 932 navigation_scheduler_(NavigationScheduler::Create(this)), |
930 script_controller_(ScriptController::Create( | 933 script_controller_(ScriptController::Create( |
931 *this, | 934 *this, |
932 *static_cast<LocalWindowProxyManager*>(GetWindowProxyManager()))), | 935 *static_cast<LocalWindowProxyManager*>(GetWindowProxyManager()))), |
933 editor_(Editor::Create(*this)), | 936 editor_(Editor::Create(*this)), |
934 spell_checker_(SpellChecker::Create(*this)), | 937 spell_checker_(SpellChecker::Create(*this)), |
935 selection_(FrameSelection::Create(*this)), | 938 selection_(FrameSelection::Create(*this)), |
936 event_handler_(new EventHandler(*this)), | 939 event_handler_(new EventHandler(*this)), |
937 console_(FrameConsole::Create(*this)), | 940 console_(FrameConsole::Create(*this)), |
938 input_method_controller_(InputMethodController::Create(*this)), | 941 input_method_controller_(InputMethodController::Create(*this)), |
| 942 text_suggestion_controller_(new TextSuggestionController(*this)), |
939 navigation_disable_count_(0), | 943 navigation_disable_count_(0), |
940 page_zoom_factor_(ParentPageZoomFactor(this)), | 944 page_zoom_factor_(ParentPageZoomFactor(this)), |
941 text_zoom_factor_(ParentTextZoomFactor(this)), | 945 text_zoom_factor_(ParentTextZoomFactor(this)), |
942 in_view_source_mode_(false), | 946 in_view_source_mode_(false), |
943 interface_provider_(interface_provider), | 947 interface_provider_(interface_provider), |
944 interface_registry_(interface_registry) { | 948 interface_registry_(interface_registry) { |
945 if (FrameResourceCoordinator::IsEnabled()) { | 949 if (FrameResourceCoordinator::IsEnabled()) { |
946 frame_resource_coordinator_ = | 950 frame_resource_coordinator_ = |
947 FrameResourceCoordinator::Create(interface_provider); | 951 FrameResourceCoordinator::Create(interface_provider); |
948 } | 952 } |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1249 void LocalFrame::SetViewportIntersectionFromParent( | 1253 void LocalFrame::SetViewportIntersectionFromParent( |
1250 const IntRect& viewport_intersection) { | 1254 const IntRect& viewport_intersection) { |
1251 if (remote_viewport_intersection_ != viewport_intersection) { | 1255 if (remote_viewport_intersection_ != viewport_intersection) { |
1252 remote_viewport_intersection_ = viewport_intersection; | 1256 remote_viewport_intersection_ = viewport_intersection; |
1253 if (View()) | 1257 if (View()) |
1254 View()->ScheduleAnimation(); | 1258 View()->ScheduleAnimation(); |
1255 } | 1259 } |
1256 } | 1260 } |
1257 | 1261 |
1258 } // namespace blink | 1262 } // namespace blink |
OLD | NEW |