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

Side by Side Diff: trunk/src/content/renderer/render_view_impl.cc

Issue 14439009: Revert 196446 "Make touch drag drop and touch editing flags tri-..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 8 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
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/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" 174 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h"
175 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h" 175 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h"
176 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSerializedScriptVa lue.h" 176 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSerializedScriptVa lue.h"
177 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSettings.h" 177 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSettings.h"
178 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaCallba cks.h" 178 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaCallba cks.h"
179 #include "third_party/WebKit/Source/WebKit/chromium/public/WebUserGestureIndicat or.h" 179 #include "third_party/WebKit/Source/WebKit/chromium/public/WebUserGestureIndicat or.h"
180 #include "third_party/WebKit/Source/WebKit/chromium/public/WebUserMediaClient.h" 180 #include "third_party/WebKit/Source/WebKit/chromium/public/WebUserMediaClient.h"
181 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 181 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
182 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWindowFeatures.h" 182 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWindowFeatures.h"
183 #include "third_party/WebKit/Source/WebKit/chromium/public/default/WebRenderThem e.h" 183 #include "third_party/WebKit/Source/WebKit/chromium/public/default/WebRenderThem e.h"
184 #include "ui/base/ui_base_switches_util.h" 184 #include "ui/base/ui_base_switches.h"
185 #include "ui/gfx/native_widget_types.h" 185 #include "ui/gfx/native_widget_types.h"
186 #include "ui/gfx/point.h" 186 #include "ui/gfx/point.h"
187 #include "ui/gfx/rect.h" 187 #include "ui/gfx/rect.h"
188 #include "ui/gfx/rect_conversions.h" 188 #include "ui/gfx/rect_conversions.h"
189 #include "ui/gfx/size_conversions.h" 189 #include "ui/gfx/size_conversions.h"
190 #include "ui/shell_dialogs/selected_file_info.h" 190 #include "ui/shell_dialogs/selected_file_info.h"
191 #include "v8/include/v8.h" 191 #include "v8/include/v8.h"
192 #include "webkit/appcache/web_application_cache_host_impl.h" 192 #include "webkit/appcache/web_application_cache_host_impl.h"
193 #include "webkit/base/file_path_string_conversions.h" 193 #include "webkit/base/file_path_string_conversions.h"
194 #include "webkit/dom_storage/dom_storage_types.h" 194 #include "webkit/dom_storage/dom_storage_types.h"
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 739
740 g_view_map.Get().insert(std::make_pair(webview(), this)); 740 g_view_map.Get().insert(std::make_pair(webview(), this));
741 g_routing_id_view_map.Get().insert(std::make_pair(routing_id_, this)); 741 g_routing_id_view_map.Get().insert(std::make_pair(routing_id_, this));
742 webview()->setDeviceScaleFactor(device_scale_factor_); 742 webview()->setDeviceScaleFactor(device_scale_factor_);
743 webview()->settings()->setAcceleratedCompositingForFixedPositionEnabled( 743 webview()->settings()->setAcceleratedCompositingForFixedPositionEnabled(
744 ShouldUseFixedPositionCompositing(device_scale_factor_)); 744 ShouldUseFixedPositionCompositing(device_scale_factor_));
745 745
746 webkit_preferences_.Apply(webview()); 746 webkit_preferences_.Apply(webview());
747 webview()->initializeMainFrame(this); 747 webview()->initializeMainFrame(this);
748 748
749 if (switches::IsTouchDragDropEnabled()) 749 if (command_line.HasSwitch(switches::kEnableTouchDragDrop))
750 webview()->settings()->setTouchDragDropEnabled(true); 750 webview()->settings()->setTouchDragDropEnabled(true);
751 751
752 if (switches::IsTouchEditingEnabled()) 752 if (command_line.HasSwitch(switches::kEnableTouchEditing))
753 webview()->settings()->setTouchEditingEnabled(true); 753 webview()->settings()->setTouchEditingEnabled(true);
754 754
755 if (!params->frame_name.empty()) 755 if (!params->frame_name.empty())
756 webview()->mainFrame()->setName(params->frame_name); 756 webview()->mainFrame()->setName(params->frame_name);
757 webview()->settings()->setMinimumTimerInterval( 757 webview()->settings()->setMinimumTimerInterval(
758 is_hidden() ? webkit_glue::kBackgroundTabTimerInterval : 758 is_hidden() ? webkit_glue::kBackgroundTabTimerInterval :
759 webkit_glue::kForegroundTabTimerInterval); 759 webkit_glue::kForegroundTabTimerInterval);
760 760
761 OnSetRendererPrefs(params->renderer_prefs); 761 OnSetRendererPrefs(params->renderer_prefs);
762 762
(...skipping 5740 matching lines...) Expand 10 before | Expand all | Expand 10 after
6503 WebURL url = icon_urls[i].iconURL(); 6503 WebURL url = icon_urls[i].iconURL();
6504 if (!url.isEmpty()) 6504 if (!url.isEmpty())
6505 urls.push_back(FaviconURL(url, 6505 urls.push_back(FaviconURL(url,
6506 ToFaviconType(icon_urls[i].iconType()))); 6506 ToFaviconType(icon_urls[i].iconType())));
6507 } 6507 }
6508 SendUpdateFaviconURL(urls); 6508 SendUpdateFaviconURL(urls);
6509 } 6509 }
6510 6510
6511 6511
6512 } // namespace content 6512 } // namespace content
OLDNEW
« no previous file with comments | « trunk/src/content/browser/web_contents/touch_editable_impl_aura.cc ('k') | trunk/src/ui/base/ui_base_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698