| 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/renderer_host/render_view_host.h" | 5 #include "content/browser/renderer_host/render_view_host.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 #include "chrome/common/web_apps.h" | 38 #include "chrome/common/web_apps.h" |
| 39 #include "content/browser/child_process_security_policy.h" | 39 #include "content/browser/child_process_security_policy.h" |
| 40 #include "content/browser/cross_site_request_manager.h" | 40 #include "content/browser/cross_site_request_manager.h" |
| 41 #include "content/browser/in_process_webkit/session_storage_namespace.h" | 41 #include "content/browser/in_process_webkit/session_storage_namespace.h" |
| 42 #include "content/browser/renderer_host/render_process_host.h" | 42 #include "content/browser/renderer_host/render_process_host.h" |
| 43 #include "content/browser/renderer_host/render_view_host_delegate.h" | 43 #include "content/browser/renderer_host/render_view_host_delegate.h" |
| 44 #include "content/browser/renderer_host/render_widget_host.h" | 44 #include "content/browser/renderer_host/render_widget_host.h" |
| 45 #include "content/browser/renderer_host/render_widget_host_view.h" | 45 #include "content/browser/renderer_host/render_widget_host_view.h" |
| 46 #include "content/browser/site_instance.h" | 46 #include "content/browser/site_instance.h" |
| 47 #include "net/base/net_util.h" | 47 #include "net/base/net_util.h" |
| 48 #include "printing/native_metafile.h" |
| 48 #include "third_party/skia/include/core/SkBitmap.h" | 49 #include "third_party/skia/include/core/SkBitmap.h" |
| 49 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" | 50 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" |
| 50 #include "ui/gfx/native_widget_types.h" | 51 #include "ui/gfx/native_widget_types.h" |
| 51 #include "webkit/glue/context_menu.h" | 52 #include "webkit/glue/context_menu.h" |
| 52 #include "webkit/glue/webaccessibility.h" | 53 #include "webkit/glue/webaccessibility.h" |
| 53 #include "webkit/glue/webdropdata.h" | 54 #include "webkit/glue/webdropdata.h" |
| 54 | 55 |
| 55 using base::TimeDelta; | 56 using base::TimeDelta; |
| 56 using WebKit::WebConsoleMessage; | 57 using WebKit::WebConsoleMessage; |
| 57 using WebKit::WebDragOperation; | 58 using WebKit::WebDragOperation; |
| (...skipping 1644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1702 LOG(DFATAL) << "Invalid checked state " << checked_state; | 1703 LOG(DFATAL) << "Invalid checked state " << checked_state; |
| 1703 return; | 1704 return; |
| 1704 } | 1705 } |
| 1705 | 1706 |
| 1706 CommandState state; | 1707 CommandState state; |
| 1707 state.is_enabled = is_enabled; | 1708 state.is_enabled = is_enabled; |
| 1708 state.checked_state = | 1709 state.checked_state = |
| 1709 static_cast<RenderViewCommandCheckedState>(checked_state); | 1710 static_cast<RenderViewCommandCheckedState>(checked_state); |
| 1710 command_states_[static_cast<RenderViewCommand>(command)] = state; | 1711 command_states_[static_cast<RenderViewCommand>(command)] = state; |
| 1711 } | 1712 } |
| OLD | NEW |