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

Side by Side Diff: content/browser/devtools/renderer_overrides_handler.cc

Issue 375873002: DevTools: enable Screencast in DEBUG_DEVTOOLS mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | content/content_browser.gypi » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/devtools/renderer_overrides_handler.h" 5 #include "content/browser/devtools/renderer_overrides_handler.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 9
10 #include "base/barrier_closure.h" 10 #include "base/barrier_closure.h"
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 SendAsyncResponse(command->SuccessResponse(response)); 494 SendAsyncResponse(command->SuccessResponse(response));
495 } 495 }
496 496
497 scoped_refptr<DevToolsProtocol::Response> 497 scoped_refptr<DevToolsProtocol::Response>
498 RendererOverridesHandler::PageCanScreencast( 498 RendererOverridesHandler::PageCanScreencast(
499 scoped_refptr<DevToolsProtocol::Command> command) { 499 scoped_refptr<DevToolsProtocol::Command> command) {
500 base::DictionaryValue* result = new base::DictionaryValue(); 500 base::DictionaryValue* result = new base::DictionaryValue();
501 #if defined(OS_ANDROID) 501 #if defined(OS_ANDROID)
502 result->SetBoolean(devtools::kResult, true); 502 result->SetBoolean(devtools::kResult, true);
503 #else 503 #else
504 # if defined(OS_LINUX) && defined(DEBUG_DEVTOOLS)
pfeldman 2014/07/08 12:20:26 #if defined(OS_ANDROID) || defined(DEBUG_DEVTOOLS)
Vladislav Kaznacheev 2014/07/08 12:25:07 Done.
505 result->SetBoolean(devtools::kResult, true);
506 # else
504 result->SetBoolean(devtools::kResult, false); 507 result->SetBoolean(devtools::kResult, false);
508 # endif // defined(OS_LINUX) && defined(DEBUG_DEVTOOLS)
505 #endif // defined(OS_ANDROID) 509 #endif // defined(OS_ANDROID)
506 return command->SuccessResponse(result); 510 return command->SuccessResponse(result);
507 } 511 }
508 512
509 scoped_refptr<DevToolsProtocol::Response> 513 scoped_refptr<DevToolsProtocol::Response>
510 RendererOverridesHandler::PageStartScreencast( 514 RendererOverridesHandler::PageStartScreencast(
511 scoped_refptr<DevToolsProtocol::Command> command) { 515 scoped_refptr<DevToolsProtocol::Command> command) {
512 screencast_command_ = command; 516 screencast_command_ = command;
513 RenderViewHostImpl* host = static_cast<RenderViewHostImpl*>( 517 RenderViewHostImpl* host = static_cast<RenderViewHostImpl*>(
514 agent_->GetRenderViewHost()); 518 agent_->GetRenderViewHost());
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 return NULL; 1004 return NULL;
1001 } 1005 }
1002 event.data.pinchUpdate.scale = static_cast<float>(scale); 1006 event.data.pinchUpdate.scale = static_cast<float>(scale);
1003 } 1007 }
1004 1008
1005 host->ForwardGestureEvent(event); 1009 host->ForwardGestureEvent(event);
1006 return command->SuccessResponse(NULL); 1010 return command->SuccessResponse(NULL);
1007 } 1011 }
1008 1012
1009 } // namespace content 1013 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698