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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2254273003: Remove text encoding UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 3 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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/common/view_messages.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <utility> 10 #include <utility>
(...skipping 2900 matching lines...) Expand 10 before | Expand all | Expand 10 after
2911 } 2911 }
2912 2912
2913 const std::string& WebContentsImpl::GetContentsMimeType() const { 2913 const std::string& WebContentsImpl::GetContentsMimeType() const {
2914 return contents_mime_type_; 2914 return contents_mime_type_;
2915 } 2915 }
2916 2916
2917 bool WebContentsImpl::WillNotifyDisconnection() const { 2917 bool WebContentsImpl::WillNotifyDisconnection() const {
2918 return notify_disconnection_; 2918 return notify_disconnection_;
2919 } 2919 }
2920 2920
2921 void WebContentsImpl::SetOverrideEncoding(const std::string& encoding) {
2922 SetEncoding(encoding);
2923 Send(new ViewMsg_SetPageEncoding(GetRoutingID(), encoding));
2924 }
2925
2926 void WebContentsImpl::ResetOverrideEncoding() {
2927 canonical_encoding_.clear();
2928 Send(new ViewMsg_ResetPageEncodingToDefault(GetRoutingID()));
2929 }
2930
2931 RendererPreferences* WebContentsImpl::GetMutableRendererPrefs() { 2921 RendererPreferences* WebContentsImpl::GetMutableRendererPrefs() {
2932 return &renderer_preferences_; 2922 return &renderer_preferences_;
2933 } 2923 }
2934 2924
2935 void WebContentsImpl::Close() { 2925 void WebContentsImpl::Close() {
2936 Close(GetRenderViewHost()); 2926 Close(GetRenderViewHost());
2937 } 2927 }
2938 2928
2939 void WebContentsImpl::DragSourceEndedAt(int client_x, int client_y, 2929 void WebContentsImpl::DragSourceEndedAt(int client_x, int client_y,
2940 int screen_x, int screen_y, blink::WebDragOperation operation) { 2930 int screen_x, int screen_y, blink::WebDragOperation operation) {
(...skipping 2272 matching lines...) Expand 10 before | Expand all | Expand 10 after
5213 for (RenderViewHost* render_view_host : render_view_host_set) 5203 for (RenderViewHost* render_view_host : render_view_host_set)
5214 render_view_host->OnWebkitPreferencesChanged(); 5204 render_view_host->OnWebkitPreferencesChanged();
5215 } 5205 }
5216 5206
5217 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( 5207 void WebContentsImpl::SetJavaScriptDialogManagerForTesting(
5218 JavaScriptDialogManager* dialog_manager) { 5208 JavaScriptDialogManager* dialog_manager) {
5219 dialog_manager_ = dialog_manager; 5209 dialog_manager_ = dialog_manager;
5220 } 5210 }
5221 5211
5222 } // namespace content 5212 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698