OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/views/controls/webview/webview.h" | 5 #include "ui/views/controls/webview/webview.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "content/public/browser/browser_accessibility_state.h" | 10 #include "content/public/browser/browser_accessibility_state.h" |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 } | 278 } |
279 | 279 |
280 void WebView::WebContentsDestroyed() { | 280 void WebView::WebContentsDestroyed() { |
281 if (observing_render_process_host_) { | 281 if (observing_render_process_host_) { |
282 observing_render_process_host_->RemoveObserver(this); | 282 observing_render_process_host_->RemoveObserver(this); |
283 observing_render_process_host_ = nullptr; | 283 observing_render_process_host_ = nullptr; |
284 } | 284 } |
285 NotifyAccessibilityWebContentsChanged(); | 285 NotifyAccessibilityWebContentsChanged(); |
286 } | 286 } |
287 | 287 |
288 void WebView::DidShowFullscreenWidget(int routing_id) { | 288 void WebView::DidShowFullscreenWidget() { |
289 if (embed_fullscreen_widget_mode_enabled_) | 289 if (embed_fullscreen_widget_mode_enabled_) |
290 ReattachForFullscreenChange(true); | 290 ReattachForFullscreenChange(true); |
291 } | 291 } |
292 | 292 |
293 void WebView::DidDestroyFullscreenWidget(int routing_id) { | 293 void WebView::DidDestroyFullscreenWidget() { |
294 if (embed_fullscreen_widget_mode_enabled_) | 294 if (embed_fullscreen_widget_mode_enabled_) |
295 ReattachForFullscreenChange(false); | 295 ReattachForFullscreenChange(false); |
296 } | 296 } |
297 | 297 |
298 void WebView::DidToggleFullscreenModeForTab(bool entered_fullscreen, | 298 void WebView::DidToggleFullscreenModeForTab(bool entered_fullscreen, |
299 bool will_cause_resize) { | 299 bool will_cause_resize) { |
300 if (embed_fullscreen_widget_mode_enabled_) | 300 if (embed_fullscreen_widget_mode_enabled_) |
301 ReattachForFullscreenChange(entered_fullscreen); | 301 ReattachForFullscreenChange(entered_fullscreen); |
302 } | 302 } |
303 | 303 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 if (!contents) { | 383 if (!contents) { |
384 content::WebContents::CreateParams create_params( | 384 content::WebContents::CreateParams create_params( |
385 browser_context, NULL); | 385 browser_context, NULL); |
386 return content::WebContents::Create(create_params); | 386 return content::WebContents::Create(create_params); |
387 } | 387 } |
388 | 388 |
389 return contents; | 389 return contents; |
390 } | 390 } |
391 | 391 |
392 } // namespace views | 392 } // namespace views |
OLD | NEW |