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/renderer_host/render_view_host.h" | 5 #include "chrome/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 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
785 IPC_MESSAGE_HANDLER(ViewHostMsg_ActivateDevToolsWindow, | 785 IPC_MESSAGE_HANDLER(ViewHostMsg_ActivateDevToolsWindow, |
786 OnActivateDevToolsWindow) | 786 OnActivateDevToolsWindow) |
787 IPC_MESSAGE_HANDLER(ViewHostMsg_CloseDevToolsWindow, | 787 IPC_MESSAGE_HANDLER(ViewHostMsg_CloseDevToolsWindow, |
788 OnCloseDevToolsWindow) | 788 OnCloseDevToolsWindow) |
789 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestDockDevToolsWindow, | 789 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestDockDevToolsWindow, |
790 OnRequestDockDevToolsWindow) | 790 OnRequestDockDevToolsWindow) |
791 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestUndockDevToolsWindow, | 791 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestUndockDevToolsWindow, |
792 OnRequestUndockDevToolsWindow) | 792 OnRequestUndockDevToolsWindow) |
793 IPC_MESSAGE_HANDLER(ViewHostMsg_DevToolsRuntimePropertyChanged, | 793 IPC_MESSAGE_HANDLER(ViewHostMsg_DevToolsRuntimePropertyChanged, |
794 OnDevToolsRuntimePropertyChanged) | 794 OnDevToolsRuntimePropertyChanged) |
795 IPC_MESSAGE_FORWARD(ViewHostMsg_JSOutOfMemory, delegate_, | |
796 RenderViewHostDelegate::OnJSOutOfMemory) | |
797 IPC_MESSAGE_HANDLER(ViewHostMsg_ShouldClose_ACK, OnMsgShouldCloseACK) | 795 IPC_MESSAGE_HANDLER(ViewHostMsg_ShouldClose_ACK, OnMsgShouldCloseACK) |
798 IPC_MESSAGE_HANDLER(ViewHostMsg_ExtensionRequest, OnExtensionRequest) | 796 IPC_MESSAGE_HANDLER(ViewHostMsg_ExtensionRequest, OnExtensionRequest) |
799 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionChanged, OnMsgSelectionChanged) | 797 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionChanged, OnMsgSelectionChanged) |
800 IPC_MESSAGE_HANDLER(ViewHostMsg_ExtensionPostMessage, | 798 IPC_MESSAGE_HANDLER(ViewHostMsg_ExtensionPostMessage, |
801 OnExtensionPostMessage) | 799 OnExtensionPostMessage) |
802 IPC_MESSAGE_HANDLER(ViewHostMsg_AccessibilityNotifications, | 800 IPC_MESSAGE_HANDLER(ViewHostMsg_AccessibilityNotifications, |
803 OnAccessibilityNotifications) | 801 OnAccessibilityNotifications) |
804 IPC_MESSAGE_HANDLER(ViewHostMsg_OnCSSInserted, OnCSSInserted) | 802 IPC_MESSAGE_HANDLER(ViewHostMsg_OnCSSInserted, OnCSSInserted) |
805 IPC_MESSAGE_HANDLER(ViewHostMsg_ContentBlocked, OnContentBlocked) | 803 IPC_MESSAGE_HANDLER(ViewHostMsg_ContentBlocked, OnContentBlocked) |
806 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) | 804 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) |
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1705 LOG(DFATAL) << "Invalid checked state " << checked_state; | 1703 LOG(DFATAL) << "Invalid checked state " << checked_state; |
1706 return; | 1704 return; |
1707 } | 1705 } |
1708 | 1706 |
1709 CommandState state; | 1707 CommandState state; |
1710 state.is_enabled = is_enabled; | 1708 state.is_enabled = is_enabled; |
1711 state.checked_state = | 1709 state.checked_state = |
1712 static_cast<RenderViewCommandCheckedState>(checked_state); | 1710 static_cast<RenderViewCommandCheckedState>(checked_state); |
1713 command_states_[static_cast<RenderViewCommand>(command)] = state; | 1711 command_states_[static_cast<RenderViewCommand>(command)] = state; |
1714 } | 1712 } |
OLD | NEW |