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

Side by Side Diff: content/child/blink_platform_impl.cc

Issue 138163016: [DevTools] Touch emulation in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix non-aura compile Created 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/child/blink_platform_impl.h" 5 #include "content/child/blink_platform_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 { "searchMagnifierResults", 694 { "searchMagnifierResults",
695 IDR_SEARCH_MAGNIFIER_RESULTS, ui::SCALE_FACTOR_100P }, 695 IDR_SEARCH_MAGNIFIER_RESULTS, ui::SCALE_FACTOR_100P },
696 { "textAreaResizeCorner", IDR_TEXTAREA_RESIZER, ui::SCALE_FACTOR_100P }, 696 { "textAreaResizeCorner", IDR_TEXTAREA_RESIZER, ui::SCALE_FACTOR_100P },
697 { "textAreaResizeCorner@2x", IDR_TEXTAREA_RESIZER, ui::SCALE_FACTOR_200P }, 697 { "textAreaResizeCorner@2x", IDR_TEXTAREA_RESIZER, ui::SCALE_FACTOR_200P },
698 { "inputSpeech", IDR_INPUT_SPEECH, ui::SCALE_FACTOR_100P }, 698 { "inputSpeech", IDR_INPUT_SPEECH, ui::SCALE_FACTOR_100P },
699 { "inputSpeechRecording", IDR_INPUT_SPEECH_RECORDING, ui::SCALE_FACTOR_100P }, 699 { "inputSpeechRecording", IDR_INPUT_SPEECH_RECORDING, ui::SCALE_FACTOR_100P },
700 { "inputSpeechWaiting", IDR_INPUT_SPEECH_WAITING, ui::SCALE_FACTOR_100P }, 700 { "inputSpeechWaiting", IDR_INPUT_SPEECH_WAITING, ui::SCALE_FACTOR_100P },
701 { "generatePassword", IDR_PASSWORD_GENERATION_ICON, ui::SCALE_FACTOR_100P }, 701 { "generatePassword", IDR_PASSWORD_GENERATION_ICON, ui::SCALE_FACTOR_100P },
702 { "generatePasswordHover", 702 { "generatePasswordHover",
703 IDR_PASSWORD_GENERATION_ICON_HOVER, ui::SCALE_FACTOR_100P }, 703 IDR_PASSWORD_GENERATION_ICON_HOVER, ui::SCALE_FACTOR_100P },
704 // TODO(dgozman): remove this after moving to content-based touch emulation.
704 { "syntheticTouchCursor", 705 { "syntheticTouchCursor",
705 IDR_SYNTHETIC_TOUCH_CURSOR, ui::SCALE_FACTOR_100P }, 706 IDR_SYNTHETIC_TOUCH_CURSOR, ui::SCALE_FACTOR_100P },
706 }; 707 };
707 708
708 } // namespace 709 } // namespace
709 710
710 WebData BlinkPlatformImpl::loadResource(const char* name) { 711 WebData BlinkPlatformImpl::loadResource(const char* name) {
711 // Some clients will call into this method with an empty |name| when they have 712 // Some clients will call into this method with an empty |name| when they have
712 // optional resources. For example, the PopupMenuChromium code can have icons 713 // optional resources. For example, the PopupMenuChromium code can have icons
713 // for some Autofill items but not for others. 714 // for some Autofill items but not for others.
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 } 1047 }
1047 1048
1048 // static 1049 // static
1049 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) { 1050 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) {
1050 WebThreadImplForMessageLoop* impl = 1051 WebThreadImplForMessageLoop* impl =
1051 static_cast<WebThreadImplForMessageLoop*>(thread); 1052 static_cast<WebThreadImplForMessageLoop*>(thread);
1052 delete impl; 1053 delete impl;
1053 } 1054 }
1054 1055
1055 } // namespace content 1056 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/resources/devtools/devtools_touch_cursor.png ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698