Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(460)

Side by Side Diff: chrome/renderer/render_view.cc

Issue 6526059: Plumb through NetworkChangeNotifier::IsOffline() to WebKit, enabling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Appease the C++ type system Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/render_view.h ('k') | content/browser/tab_contents/tab_contents.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/renderer/render_view.h" 5 #include "chrome/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystem.h" 127 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystem.h"
128 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback s.h" 128 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback s.h"
129 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" 129 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h"
130 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement .h" 130 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement .h"
131 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" 131 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h"
132 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 132 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
133 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGraphicsContext3D. h" 133 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGraphicsContext3D. h"
134 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" 134 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h"
135 #include "third_party/WebKit/Source/WebKit/chromium/public/WebImage.h" 135 #include "third_party/WebKit/Source/WebKit/chromium/public/WebImage.h"
136 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" 136 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h"
137 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNetworkStateNotifi er.h"
137 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" 138 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h"
138 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeList.h" 139 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeList.h"
139 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializer.h" 140 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializer.h"
140 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" 141 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h"
141 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" 142 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h"
142 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginDocument.h" 143 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginDocument.h"
143 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h" 144 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h"
144 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPoint.h" 145 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPoint.h"
145 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRange.h" 146 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRange.h"
146 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h" 147 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 using WebKit::WebFormElement; 241 using WebKit::WebFormElement;
241 using WebKit::WebFrame; 242 using WebKit::WebFrame;
242 using WebKit::WebHistoryItem; 243 using WebKit::WebHistoryItem;
243 using WebKit::WebImage; 244 using WebKit::WebImage;
244 using WebKit::WebInputElement; 245 using WebKit::WebInputElement;
245 using WebKit::WebMediaPlayer; 246 using WebKit::WebMediaPlayer;
246 using WebKit::WebMediaPlayerAction; 247 using WebKit::WebMediaPlayerAction;
247 using WebKit::WebMediaPlayerClient; 248 using WebKit::WebMediaPlayerClient;
248 using WebKit::WebNavigationPolicy; 249 using WebKit::WebNavigationPolicy;
249 using WebKit::WebNavigationType; 250 using WebKit::WebNavigationType;
251 using WebKit::WebNetworkStateNotifier;
250 using WebKit::WebNode; 252 using WebKit::WebNode;
251 using WebKit::WebPageSerializer; 253 using WebKit::WebPageSerializer;
252 using WebKit::WebPageSerializerClient; 254 using WebKit::WebPageSerializerClient;
253 using WebKit::WebPlugin; 255 using WebKit::WebPlugin;
254 using WebKit::WebPluginContainer; 256 using WebKit::WebPluginContainer;
255 using WebKit::WebPluginDocument; 257 using WebKit::WebPluginDocument;
256 using WebKit::WebPluginParams; 258 using WebKit::WebPluginParams;
257 using WebKit::WebPoint; 259 using WebKit::WebPoint;
258 using WebKit::WebPopupMenuInfo; 260 using WebKit::WebPopupMenuInfo;
259 using WebKit::WebRange; 261 using WebKit::WebRange;
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after
1104 OnAccessibilityDoDefaultAction) 1106 OnAccessibilityDoDefaultAction)
1105 IPC_MESSAGE_HANDLER(ViewMsg_AccessibilityNotifications_ACK, 1107 IPC_MESSAGE_HANDLER(ViewMsg_AccessibilityNotifications_ACK,
1106 OnAccessibilityNotificationsAck) 1108 OnAccessibilityNotificationsAck)
1107 IPC_MESSAGE_HANDLER(ViewMsg_AsyncOpenFile_ACK, OnAsyncFileOpened) 1109 IPC_MESSAGE_HANDLER(ViewMsg_AsyncOpenFile_ACK, OnAsyncFileOpened)
1108 #if defined(OS_MACOSX) 1110 #if defined(OS_MACOSX)
1109 IPC_MESSAGE_HANDLER(ViewMsg_SelectPopupMenuItem, OnSelectPopupMenuItem) 1111 IPC_MESSAGE_HANDLER(ViewMsg_SelectPopupMenuItem, OnSelectPopupMenuItem)
1110 #endif 1112 #endif
1111 IPC_MESSAGE_HANDLER(ViewMsg_JavaScriptStressTestControl, 1113 IPC_MESSAGE_HANDLER(ViewMsg_JavaScriptStressTestControl,
1112 OnJavaScriptStressTestControl) 1114 OnJavaScriptStressTestControl)
1113 IPC_MESSAGE_HANDLER(ViewMsg_ContextMenuClosed, OnContextMenuClosed) 1115 IPC_MESSAGE_HANDLER(ViewMsg_ContextMenuClosed, OnContextMenuClosed)
1116 IPC_MESSAGE_HANDLER(ViewMsg_NetworkStateChanged, OnNetworkStateChanged)
1114 1117
1115 // TODO(viettrungluu): Move to a separate message filter. 1118 // TODO(viettrungluu): Move to a separate message filter.
1116 #if defined(ENABLE_FLAPPER_HACKS) 1119 #if defined(ENABLE_FLAPPER_HACKS)
1117 IPC_MESSAGE_HANDLER(PepperMsg_ConnectTcpACK, OnConnectTcpACK) 1120 IPC_MESSAGE_HANDLER(PepperMsg_ConnectTcpACK, OnConnectTcpACK)
1118 #endif 1121 #endif
1119 1122
1120 // Have the super handle all other messages. 1123 // Have the super handle all other messages.
1121 IPC_MESSAGE_UNHANDLED(handled = RenderWidget::OnMessageReceived(message)) 1124 IPC_MESSAGE_UNHANDLED(handled = RenderWidget::OnMessageReceived(message))
1122 IPC_END_MESSAGE_MAP() 1125 IPC_END_MESSAGE_MAP()
1123 return handled; 1126 return handled;
(...skipping 4573 matching lines...) Expand 10 before | Expand all | Expand 10 after
5697 } 5700 }
5698 } 5701 }
5699 5702
5700 void RenderView::OnContextMenuClosed( 5703 void RenderView::OnContextMenuClosed(
5701 const webkit_glue::CustomContextMenuContext& custom_context) { 5704 const webkit_glue::CustomContextMenuContext& custom_context) {
5702 if (custom_context.is_pepper_menu) 5705 if (custom_context.is_pepper_menu)
5703 pepper_delegate_.OnContextMenuClosed(custom_context); 5706 pepper_delegate_.OnContextMenuClosed(custom_context);
5704 else 5707 else
5705 context_menu_node_.reset(); 5708 context_menu_node_.reset();
5706 } 5709 }
5710
5711 void RenderView::OnNetworkStateChanged(bool online) {
5712 WebNetworkStateNotifier::setOnLine(online);
5713 }
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.h ('k') | content/browser/tab_contents/tab_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698