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 23 matching lines...) Expand all Loading... |
34 #include "content/browser/tab_contents/provisional_load_details.h" | 34 #include "content/browser/tab_contents/provisional_load_details.h" |
35 #include "content/browser/tab_contents/tab_contents_delegate.h" | 35 #include "content/browser/tab_contents/tab_contents_delegate.h" |
36 #include "content/browser/tab_contents/tab_contents_observer.h" | 36 #include "content/browser/tab_contents/tab_contents_observer.h" |
37 #include "content/browser/tab_contents/tab_contents_view.h" | 37 #include "content/browser/tab_contents/tab_contents_view.h" |
38 #include "content/browser/tab_contents/title_updated_details.h" | 38 #include "content/browser/tab_contents/title_updated_details.h" |
39 #include "content/browser/user_metrics.h" | 39 #include "content/browser/user_metrics.h" |
40 #include "content/browser/webui/web_ui_factory.h" | 40 #include "content/browser/webui/web_ui_factory.h" |
41 #include "content/common/intents_messages.h" | 41 #include "content/common/intents_messages.h" |
42 #include "content/common/view_messages.h" | 42 #include "content/common/view_messages.h" |
43 #include "content/public/browser/content_browser_client.h" | 43 #include "content/public/browser/content_browser_client.h" |
44 #include "content/public/browser/navigation_types.h" | 44 #include "content/public/browser/navigation_type.h" |
45 #include "content/public/browser/notification_service.h" | 45 #include "content/public/browser/notification_service.h" |
46 #include "content/public/common/bindings_policy.h" | 46 #include "content/public/common/bindings_policy.h" |
47 #include "content/public/common/content_constants.h" | 47 #include "content/public/common/content_constants.h" |
48 #include "content/public/common/content_restriction.h" | 48 #include "content/public/common/content_restriction.h" |
49 #include "content/public/common/url_constants.h" | 49 #include "content/public/common/url_constants.h" |
50 #include "net/base/net_util.h" | 50 #include "net/base/net_util.h" |
51 #include "net/url_request/url_request_context_getter.h" | 51 #include "net/url_request/url_request_context_getter.h" |
52 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 52 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
53 #include "ui/gfx/codec/png_codec.h" | 53 #include "ui/gfx/codec/png_codec.h" |
54 #include "webkit/glue/password_form.h" | 54 #include "webkit/glue/password_form.h" |
(...skipping 1996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2051 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); | 2051 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); |
2052 // Can be NULL during tests. | 2052 // Can be NULL during tests. |
2053 if (rwh_view) | 2053 if (rwh_view) |
2054 rwh_view->SetSize(view()->GetContainerSize()); | 2054 rwh_view->SetSize(view()->GetContainerSize()); |
2055 } | 2055 } |
2056 | 2056 |
2057 bool TabContents::GotResponseToLockMouseRequest(bool allowed) { | 2057 bool TabContents::GotResponseToLockMouseRequest(bool allowed) { |
2058 return render_view_host() ? | 2058 return render_view_host() ? |
2059 render_view_host()->GotResponseToLockMouseRequest(allowed) : false; | 2059 render_view_host()->GotResponseToLockMouseRequest(allowed) : false; |
2060 } | 2060 } |
OLD | NEW |