| OLD | NEW |
| 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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 DCHECK(page_); | 324 DCHECK(page_); |
| 325 ProvidePrerendererClientTo( | 325 ProvidePrerendererClientTo( |
| 326 *page_, new PrerendererClientImpl(*page_, prerenderer_client)); | 326 *page_, new PrerendererClientImpl(*page_, prerenderer_client)); |
| 327 } | 327 } |
| 328 | 328 |
| 329 void WebViewImpl::SetSpellCheckClient(WebSpellCheckClient* spell_check_client) { | 329 void WebViewImpl::SetSpellCheckClient(WebSpellCheckClient* spell_check_client) { |
| 330 spell_check_client_ = spell_check_client; | 330 spell_check_client_ = spell_check_client; |
| 331 } | 331 } |
| 332 | 332 |
| 333 // static | 333 // static |
| 334 HashSet<WebViewImpl*>& WebViewImpl::AllInstances() { | 334 HashSet<WebViewBase*>& WebViewBase::AllInstances() { |
| 335 DEFINE_STATIC_LOCAL(HashSet<WebViewImpl*>, all_instances, ()); | 335 DEFINE_STATIC_LOCAL(HashSet<WebViewBase*>, all_instances, ()); |
| 336 return all_instances; | 336 return all_instances; |
| 337 } | 337 } |
| 338 | 338 |
| 339 WebViewImpl::WebViewImpl(WebViewClient* client, | 339 WebViewImpl::WebViewImpl(WebViewClient* client, |
| 340 WebPageVisibilityState visibility_state) | 340 WebPageVisibilityState visibility_state) |
| 341 : client_(client), | 341 : client_(client), |
| 342 spell_check_client_(nullptr), | 342 spell_check_client_(nullptr), |
| 343 chrome_client_impl_(ChromeClientImpl::Create(this)), | 343 chrome_client_impl_(ChromeClientImpl::Create(this)), |
| 344 context_menu_client_impl_(this), | 344 context_menu_client_impl_(this), |
| 345 editor_client_impl_(this), | 345 editor_client_impl_(this), |
| (...skipping 3834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4180 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) | 4180 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) |
| 4181 return nullptr; | 4181 return nullptr; |
| 4182 return focused_frame; | 4182 return focused_frame; |
| 4183 } | 4183 } |
| 4184 | 4184 |
| 4185 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { | 4185 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { |
| 4186 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; | 4186 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; |
| 4187 } | 4187 } |
| 4188 | 4188 |
| 4189 } // namespace blink | 4189 } // namespace blink |
| OLD | NEW |