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

Side by Side Diff: content/public/common/renderer_preferences.h

Issue 19256012: Allow zoom-in as alternative to popup when tapping multiple targets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 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
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 // A struct for managing browser's settings that apply to the renderer or its 5 // A struct for managing browser's settings that apply to the renderer or its
6 // webview. These differ from WebPreferences since they apply to Chromium's 6 // webview. These differ from WebPreferences since they apply to Chromium's
7 // glue layer rather than applying to just WebKit. 7 // glue layer rather than applying to just WebKit.
8 // 8 //
9 // Adding new values to this class probably involves updating 9 // Adding new values to this class probably involves updating
10 // common/view_messages.h, browser/browser.cc, etc. 10 // common/view_messages.h, browser/browser.cc, etc.
(...skipping 19 matching lines...) Expand all
30 30
31 enum RendererPreferencesSubpixelRenderingEnum { 31 enum RendererPreferencesSubpixelRenderingEnum {
32 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT = 0, 32 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT = 0,
33 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_NONE, 33 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_NONE,
34 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_RGB, 34 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_RGB,
35 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_BGR, 35 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_BGR,
36 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_VRGB, 36 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_VRGB,
37 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_VBGR, 37 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_VBGR,
38 }; 38 };
39 39
40 enum DidTapMultipleTargetsStrategy {
41 MULTITARGET_ZOOM = 0,
42 MULTITARGET_POPUP,
43 };
44
40 struct CONTENT_EXPORT RendererPreferences { 45 struct CONTENT_EXPORT RendererPreferences {
41 RendererPreferences(); 46 RendererPreferences();
42 ~RendererPreferences(); 47 ~RendererPreferences();
43 48
44 // Whether the renderer's current browser context accept drops from the OS 49 // Whether the renderer's current browser context accept drops from the OS
45 // that result in navigations away from the current page. 50 // that result in navigations away from the current page.
46 bool can_accept_load_drops; 51 bool can_accept_load_drops;
47 52
48 // Whether text should be antialiased. 53 // Whether text should be antialiased.
49 // Currently only used by Linux. 54 // Currently only used by Linux.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // Sunspider. We need to find an efficient way to report changes to frame 124 // Sunspider. We need to find an efficient way to report changes to frame
120 // names to the browser process. See http://crbug.com/169110 for more 125 // names to the browser process. See http://crbug.com/169110 for more
121 // information. 126 // information.
122 bool report_frame_name_changes; 127 bool report_frame_name_changes;
123 128
124 // Controls deacceleration of touchpad-initiated flings. 129 // Controls deacceleration of touchpad-initiated flings.
125 std::vector<float> touchpad_fling_profile; 130 std::vector<float> touchpad_fling_profile;
126 131
127 // Controls deacceleration of touchscreen-initiated flings. 132 // Controls deacceleration of touchscreen-initiated flings.
128 std::vector<float> touchscreen_fling_profile; 133 std::vector<float> touchscreen_fling_profile;
134
135 // How to handle a tap gesture touching multiple targets
136 DidTapMultipleTargetsStrategy did_tap_multiple_targets_strategy;
129 }; 137 };
130 138
131 } // namespace content 139 } // namespace content
132 140
133 #endif // CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_ 141 #endif // CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698