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

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

Issue 2870773003: Move EditorClientImpl.cpp out of web/ to core/page/EditorClient.cpp (Closed)
Patch Set: 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) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 DEFINE_STATIC_LOCAL(HashSet<WebViewBase*>, all_instances, ()); 333 DEFINE_STATIC_LOCAL(HashSet<WebViewBase*>, all_instances, ());
334 return all_instances; 334 return all_instances;
335 } 335 }
336 336
337 WebViewImpl::WebViewImpl(WebViewClient* client, 337 WebViewImpl::WebViewImpl(WebViewClient* client,
338 WebPageVisibilityState visibility_state) 338 WebPageVisibilityState visibility_state)
339 : client_(client), 339 : client_(client),
340 spell_check_client_(nullptr), 340 spell_check_client_(nullptr),
341 chrome_client_impl_(ChromeClientImpl::Create(this)), 341 chrome_client_impl_(ChromeClientImpl::Create(this)),
342 context_menu_client_impl_(this), 342 context_menu_client_impl_(this),
343 editor_client_impl_(this), 343 editor_client_(this),
344 spell_checker_client_impl_(this), 344 spell_checker_client_impl_(this),
345 storage_client_impl_(this), 345 storage_client_impl_(this),
346 should_auto_resize_(false), 346 should_auto_resize_(false),
347 zoom_level_(0), 347 zoom_level_(0),
348 minimum_zoom_level_(ZoomFactorToZoomLevel(kMinTextSizeMultiplier)), 348 minimum_zoom_level_(ZoomFactorToZoomLevel(kMinTextSizeMultiplier)),
349 maximum_zoom_level_(ZoomFactorToZoomLevel(kMaxTextSizeMultiplier)), 349 maximum_zoom_level_(ZoomFactorToZoomLevel(kMaxTextSizeMultiplier)),
350 zoom_factor_for_device_scale_factor_(0.f), 350 zoom_factor_for_device_scale_factor_(0.f),
351 maximum_legible_scale_(1), 351 maximum_legible_scale_(1),
352 double_tap_zoom_page_scale_factor_(0), 352 double_tap_zoom_page_scale_factor_(0),
353 double_tap_zoom_pending_(false), 353 double_tap_zoom_pending_(false),
(...skipping 28 matching lines...) Expand all
382 scheduler_(WTF::WrapUnique(Platform::Current() 382 scheduler_(WTF::WrapUnique(Platform::Current()
383 ->CurrentThread() 383 ->CurrentThread()
384 ->Scheduler() 384 ->Scheduler()
385 ->CreateWebViewScheduler(this, this) 385 ->CreateWebViewScheduler(this, this)
386 .release())), 386 .release())),
387 last_frame_time_monotonic_(0), 387 last_frame_time_monotonic_(0),
388 override_compositor_visibility_(false) { 388 override_compositor_visibility_(false) {
389 Page::PageClients page_clients; 389 Page::PageClients page_clients;
390 page_clients.chrome_client = chrome_client_impl_.Get(); 390 page_clients.chrome_client = chrome_client_impl_.Get();
391 page_clients.context_menu_client = &context_menu_client_impl_; 391 page_clients.context_menu_client = &context_menu_client_impl_;
392 page_clients.editor_client = &editor_client_impl_; 392 page_clients.editor_client = &editor_client_;
393 page_clients.spell_checker_client = &spell_checker_client_impl_; 393 page_clients.spell_checker_client = &spell_checker_client_impl_;
394 394
395 page_ = Page::CreateOrdinary(page_clients); 395 page_ = Page::CreateOrdinary(page_clients);
396 MediaKeysController::ProvideMediaKeysTo(*page_, &media_keys_client_impl_); 396 MediaKeysController::ProvideMediaKeysTo(*page_, &media_keys_client_impl_);
397 ProvideSpeechRecognitionTo( 397 ProvideSpeechRecognitionTo(
398 *page_, SpeechRecognitionClientProxy::Create( 398 *page_, SpeechRecognitionClientProxy::Create(
399 client ? client->SpeechRecognizer() : nullptr)); 399 client ? client->SpeechRecognizer() : nullptr));
400 ProvideContextFeaturesTo(*page_, ContextFeaturesClientImpl::Create()); 400 ProvideContextFeaturesTo(*page_, ContextFeaturesClientImpl::Create());
401 ProvideDatabaseClientTo(*page_, new DatabaseClient); 401 ProvideDatabaseClientTo(*page_, new DatabaseClient);
402 402
(...skipping 3766 matching lines...) Expand 10 before | Expand all | Expand 10 after
4169 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) 4169 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame())
4170 return nullptr; 4170 return nullptr;
4171 return focused_frame; 4171 return focused_frame;
4172 } 4172 }
4173 4173
4174 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { 4174 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const {
4175 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; 4175 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr;
4176 } 4176 }
4177 4177
4178 } // namespace blink 4178 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698