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

Side by Side Diff: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp

Issue 2892393002: Move WebInputMethodControllerImpl to core/exported/ & break dependencies. (Closed)
Patch Set: Move WebInputMethodControllerImpl to core/exported/ Created 3 years, 7 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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 #include "platform/wtf/PtrUtil.h" 64 #include "platform/wtf/PtrUtil.h"
65 #include "public/web/WebAutofillClient.h" 65 #include "public/web/WebAutofillClient.h"
66 #include "public/web/WebPlugin.h" 66 #include "public/web/WebPlugin.h"
67 #include "public/web/WebRange.h" 67 #include "public/web/WebRange.h"
68 #include "public/web/WebWidgetClient.h" 68 #include "public/web/WebWidgetClient.h"
69 #include "web/AnimationWorkletProxyClientImpl.h" 69 #include "web/AnimationWorkletProxyClientImpl.h"
70 #include "web/CompositorMutatorImpl.h" 70 #include "web/CompositorMutatorImpl.h"
71 #include "web/CompositorWorkerProxyClientImpl.h" 71 #include "web/CompositorWorkerProxyClientImpl.h"
72 #include "web/ContextMenuAllowedScope.h" 72 #include "web/ContextMenuAllowedScope.h"
73 #include "web/WebDevToolsAgentImpl.h" 73 #include "web/WebDevToolsAgentImpl.h"
74 #include "web/WebInputMethodControllerImpl.h"
75 #include "web/WebLocalFrameImpl.h" 74 #include "web/WebLocalFrameImpl.h"
76 #include "web/WebPagePopupImpl.h" 75 #include "web/WebPagePopupImpl.h"
77 #include "web/WebRemoteFrameImpl.h" 76 #include "web/WebRemoteFrameImpl.h"
78 #include "web/WebViewFrameWidget.h" 77 #include "web/WebViewFrameWidget.h"
79 78
80 namespace blink { 79 namespace blink {
81 80
82 // WebFrameWidget ------------------------------------------------------------ 81 // WebFrameWidget ------------------------------------------------------------
83 82
84 WebFrameWidget* WebFrameWidget::Create(WebWidgetClient* client, 83 WebFrameWidget* WebFrameWidget::Create(WebWidgetClient* client,
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 return; 450 return;
452 451
453 base_background_color_ = color; 452 base_background_color_ = color;
454 UpdateBaseBackgroundColor(); 453 UpdateBaseBackgroundColor();
455 } 454 }
456 455
457 void WebFrameWidgetImpl::UpdateBaseBackgroundColor() { 456 void WebFrameWidgetImpl::UpdateBaseBackgroundColor() {
458 local_root_->GetFrameView()->SetBaseBackgroundColor(BaseBackgroundColor()); 457 local_root_->GetFrameView()->SetBaseBackgroundColor(BaseBackgroundColor());
459 } 458 }
460 459
461 WebInputMethodControllerImpl* 460 WebInputMethodController*
462 WebFrameWidgetImpl::GetActiveWebInputMethodController() const { 461 WebFrameWidgetImpl::GetActiveWebInputMethodController() const {
463 return WebInputMethodControllerImpl::FromFrame(FocusedLocalFrameInWidget()); 462 WebLocalFrameBase* local_frame =
463 WebLocalFrameBase::FromFrame(FocusedLocalFrameInWidget());
464 return local_frame ? local_frame->GetInputMethodController() : nullptr;
464 } 465 }
465 466
466 void WebFrameWidgetImpl::ScheduleAnimation() { 467 void WebFrameWidgetImpl::ScheduleAnimation() {
467 if (layer_tree_view_) { 468 if (layer_tree_view_) {
468 layer_tree_view_->SetNeedsBeginFrame(); 469 layer_tree_view_->SetNeedsBeginFrame();
469 return; 470 return;
470 } 471 }
471 DCHECK(client_); 472 DCHECK(client_);
472 client_->ScheduleAnimation(); 473 client_->ScheduleAnimation();
473 } 474 }
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
1197 : nullptr; 1198 : nullptr;
1198 } 1199 }
1199 1200
1200 LocalFrame* WebFrameWidgetImpl::FocusedLocalFrameAvailableForIme() const { 1201 LocalFrame* WebFrameWidgetImpl::FocusedLocalFrameAvailableForIme() const {
1201 if (!ime_accept_events_) 1202 if (!ime_accept_events_)
1202 return nullptr; 1203 return nullptr;
1203 return FocusedLocalFrameInWidget(); 1204 return FocusedLocalFrameInWidget();
1204 } 1205 }
1205 1206
1206 } // namespace blink 1207 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698