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

Side by Side Diff: chrome/browser/plugins/plugin_power_saver_browsertest.cc

Issue 2497033002: Break apart WebGestureEvent from WebInputEvent. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 <stdint.h> 5 #include <stdint.h>
6 #include <string> 6 #include <string>
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 15 matching lines...) Expand all
26 #include "content/public/browser/readback_types.h" 26 #include "content/public/browser/readback_types.h"
27 #include "content/public/browser/render_frame_host.h" 27 #include "content/public/browser/render_frame_host.h"
28 #include "content/public/browser/render_view_host.h" 28 #include "content/public/browser/render_view_host.h"
29 #include "content/public/browser/render_widget_host.h" 29 #include "content/public/browser/render_widget_host.h"
30 #include "content/public/common/content_switches.h" 30 #include "content/public/common/content_switches.h"
31 #include "content/public/test/browser_test_utils.h" 31 #include "content/public/test/browser_test_utils.h"
32 #include "content/public/test/ppapi_test_utils.h" 32 #include "content/public/test/ppapi_test_utils.h"
33 #include "net/test/embedded_test_server/embedded_test_server.h" 33 #include "net/test/embedded_test_server/embedded_test_server.h"
34 #include "net/test/embedded_test_server/http_request.h" 34 #include "net/test/embedded_test_server/http_request.h"
35 #include "net/test/embedded_test_server/http_response.h" 35 #include "net/test/embedded_test_server/http_response.h"
36 #include "third_party/WebKit/public/web/WebInputEvent.h" 36 #include "third_party/WebKit/public/platform/WebInputEvent.h"
37 #include "third_party/skia/include/core/SkBitmap.h" 37 #include "third_party/skia/include/core/SkBitmap.h"
38 #include "ui/base/window_open_disposition.h" 38 #include "ui/base/window_open_disposition.h"
39 #include "ui/display/display.h" 39 #include "ui/display/display.h"
40 #include "ui/display/display_switches.h" 40 #include "ui/display/display_switches.h"
41 #include "ui/display/screen.h" 41 #include "ui/display/screen.h"
42 #include "ui/gfx/codec/png_codec.h" 42 #include "ui/gfx/codec/png_codec.h"
43 #include "ui/gfx/geometry/point.h" 43 #include "ui/gfx/geometry/point.h"
44 44
45 namespace { 45 namespace {
46 46
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 IN_PROC_BROWSER_TEST_F(PluginPowerSaverPreferHtmlBrowserTest, 780 IN_PROC_BROWSER_TEST_F(PluginPowerSaverPreferHtmlBrowserTest,
781 ThrottlePluginsOnAllowContentSetting) { 781 ThrottlePluginsOnAllowContentSetting) {
782 HostContentSettingsMap* content_settings_map = 782 HostContentSettingsMap* content_settings_map =
783 HostContentSettingsMapFactory::GetForProfile(browser()->profile()); 783 HostContentSettingsMapFactory::GetForProfile(browser()->profile());
784 784
785 content_settings_map->SetDefaultContentSetting(CONTENT_SETTINGS_TYPE_PLUGINS, 785 content_settings_map->SetDefaultContentSetting(CONTENT_SETTINGS_TYPE_PLUGINS,
786 CONTENT_SETTING_ALLOW); 786 CONTENT_SETTING_ALLOW);
787 LoadPeripheralPlugin(); 787 LoadPeripheralPlugin();
788 VerifyPluginIsThrottled(GetActiveWebContents(), "plugin"); 788 VerifyPluginIsThrottled(GetActiveWebContents(), "plugin");
789 } 789 }
OLDNEW
« no previous file with comments | « chrome/browser/plugins/flash_permission_browsertest.cc ('k') | chrome/browser/policy/policy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698