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 "content/browser/tab_contents/tab_contents.h" | 5 #include "content/browser/tab_contents/tab_contents.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 #include "content/public/browser/notification_service.h" | 45 #include "content/public/browser/notification_service.h" |
46 #include "content/public/browser/user_metrics.h" | 46 #include "content/public/browser/user_metrics.h" |
47 #include "content/public/common/bindings_policy.h" | 47 #include "content/public/common/bindings_policy.h" |
48 #include "content/public/common/content_constants.h" | 48 #include "content/public/common/content_constants.h" |
49 #include "content/public/common/content_restriction.h" | 49 #include "content/public/common/content_restriction.h" |
50 #include "content/public/common/url_constants.h" | 50 #include "content/public/common/url_constants.h" |
51 #include "net/base/net_util.h" | 51 #include "net/base/net_util.h" |
52 #include "net/url_request/url_request_context_getter.h" | 52 #include "net/url_request/url_request_context_getter.h" |
53 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 53 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
54 #include "ui/gfx/codec/png_codec.h" | 54 #include "ui/gfx/codec/png_codec.h" |
55 #include "webkit/glue/password_form.h" | |
56 #include "webkit/glue/web_intent_data.h" | 55 #include "webkit/glue/web_intent_data.h" |
57 #include "webkit/glue/webpreferences.h" | 56 #include "webkit/glue/webpreferences.h" |
58 | 57 |
59 #if defined(OS_MACOSX) | 58 #if defined(OS_MACOSX) |
60 #include "ui/gfx/surface/io_surface_support_mac.h" | 59 #include "ui/gfx/surface/io_surface_support_mac.h" |
61 #endif // defined(OS_MACOSX) | 60 #endif // defined(OS_MACOSX) |
62 | 61 |
63 // Cross-Site Navigations | 62 // Cross-Site Navigations |
64 // | 63 // |
65 // If a TabContents is told to navigate to a different web site (as determined | 64 // If a TabContents is told to navigate to a different web site (as determined |
(...skipping 2003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2069 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); | 2068 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); |
2070 // Can be NULL during tests. | 2069 // Can be NULL during tests. |
2071 if (rwh_view) | 2070 if (rwh_view) |
2072 rwh_view->SetSize(view()->GetContainerSize()); | 2071 rwh_view->SetSize(view()->GetContainerSize()); |
2073 } | 2072 } |
2074 | 2073 |
2075 bool TabContents::GotResponseToLockMouseRequest(bool allowed) { | 2074 bool TabContents::GotResponseToLockMouseRequest(bool allowed) { |
2076 return render_view_host() ? | 2075 return render_view_host() ? |
2077 render_view_host()->GotResponseToLockMouseRequest(allowed) : false; | 2076 render_view_host()->GotResponseToLockMouseRequest(allowed) : false; |
2078 } | 2077 } |
OLD | NEW |