OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/ui/views/tab_contents/tab_contents_view_views.h" | 5 #include "chrome/browser/ui/views/tab_contents/tab_contents_view_views.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "chrome/browser/ui/constrained_window.h" | 10 #include "chrome/browser/ui/constrained_window.h" |
11 #include "chrome/browser/ui/constrained_window_tab_helper.h" | 11 #include "chrome/browser/ui/constrained_window_tab_helper.h" |
12 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 12 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
13 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view.h" | 13 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view.h" |
14 #include "chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h" | 14 #include "chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h" |
15 #include "content/browser/renderer_host/render_process_host.h" | |
16 #include "content/browser/renderer_host/render_view_host.h" | 15 #include "content/browser/renderer_host/render_view_host.h" |
17 #include "content/browser/renderer_host/render_view_host_factory.h" | 16 #include "content/browser/renderer_host/render_view_host_factory.h" |
18 #include "content/browser/renderer_host/render_widget_host_view.h" | 17 #include "content/browser/renderer_host/render_widget_host_view.h" |
19 #include "content/browser/tab_contents/interstitial_page.h" | 18 #include "content/browser/tab_contents/interstitial_page.h" |
20 #include "content/browser/tab_contents/tab_contents.h" | 19 #include "content/browser/tab_contents/tab_contents.h" |
21 #include "content/browser/tab_contents/tab_contents_delegate.h" | 20 #include "content/browser/tab_contents/tab_contents_delegate.h" |
| 21 #include "content/public/browser/render_process_host.h" |
22 #include "ui/gfx/screen.h" | 22 #include "ui/gfx/screen.h" |
23 #include "views/focus/focus_manager.h" | 23 #include "views/focus/focus_manager.h" |
24 #include "views/focus/view_storage.h" | 24 #include "views/focus/view_storage.h" |
25 #include "views/widget/native_widget.h" | 25 #include "views/widget/native_widget.h" |
26 #include "views/widget/widget.h" | 26 #include "views/widget/widget.h" |
27 | 27 |
28 #if defined(OS_WIN) | 28 #if defined(OS_WIN) |
29 #include <windows.h> | 29 #include <windows.h> |
30 #endif | 30 #endif |
31 | 31 |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 tab_contents_->HideContents(); | 454 tab_contents_->HideContents(); |
455 } | 455 } |
456 } | 456 } |
457 | 457 |
458 void TabContentsViewViews::OnNativeWidgetSizeChanged( | 458 void TabContentsViewViews::OnNativeWidgetSizeChanged( |
459 const gfx::Size& new_size) { | 459 const gfx::Size& new_size) { |
460 if (overlaid_view_) | 460 if (overlaid_view_) |
461 overlaid_view_->SetBounds(gfx::Rect(new_size)); | 461 overlaid_view_->SetBounds(gfx::Rect(new_size)); |
462 views::Widget::OnNativeWidgetSizeChanged(new_size); | 462 views::Widget::OnNativeWidgetSizeChanged(new_size); |
463 } | 463 } |
OLD | NEW |