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

Side by Side Diff: Source/core/inspector/InspectorPageAgent.cpp

Issue 23537022: Add navigation controls to DevTools screencast view (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Polished styles, added icons Created 7 years, 3 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
« no previous file with comments | « Source/core/inspector/InspectorPageAgent.h ('k') | Source/devtools/devtools.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 } 450 }
451 451
452 void InspectorPageAgent::navigate(ErrorString*, const String& url) 452 void InspectorPageAgent::navigate(ErrorString*, const String& url)
453 { 453 {
454 UserGestureIndicator indicator(DefinitelyProcessingNewUserGesture); 454 UserGestureIndicator indicator(DefinitelyProcessingNewUserGesture);
455 Frame* frame = m_page->mainFrame(); 455 Frame* frame = m_page->mainFrame();
456 FrameLoadRequest request(frame->document()->securityOrigin(), ResourceReques t(frame->document()->completeURL(url))); 456 FrameLoadRequest request(frame->document()->securityOrigin(), ResourceReques t(frame->document()->completeURL(url)));
457 frame->loader()->load(request); 457 frame->loader()->load(request);
458 } 458 }
459 459
460 void InspectorPageAgent::getNavigationHistory(ErrorString*, int*, RefPtr<TypeBui lder::Array<TypeBuilder::Page::NavigationEntry> >&)
461 { }
462
463 void InspectorPageAgent::navigateToHistoryEntry(ErrorString*, int)
464 { }
465
460 static PassRefPtr<TypeBuilder::Page::Cookie> buildObjectForCookie(const Cookie& cookie) 466 static PassRefPtr<TypeBuilder::Page::Cookie> buildObjectForCookie(const Cookie& cookie)
461 { 467 {
462 return TypeBuilder::Page::Cookie::create() 468 return TypeBuilder::Page::Cookie::create()
463 .setName(cookie.name) 469 .setName(cookie.name)
464 .setValue(cookie.value) 470 .setValue(cookie.value)
465 .setDomain(cookie.domain) 471 .setDomain(cookie.domain)
466 .setPath(cookie.path) 472 .setPath(cookie.path)
467 .setExpires(cookie.expires) 473 .setExpires(cookie.expires)
468 .setSize((cookie.name.length() + cookie.value.length())) 474 .setSize((cookie.name.length() + cookie.value.length()))
469 .setHttpOnly(cookie.httpOnly) 475 .setHttpOnly(cookie.httpOnly)
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
1290 } 1296 }
1291 1297
1292 void InspectorPageAgent::setShowViewportSizeOnResize(ErrorString*, bool show, co nst bool* showGrid) 1298 void InspectorPageAgent::setShowViewportSizeOnResize(ErrorString*, bool show, co nst bool* showGrid)
1293 { 1299 {
1294 m_state->setBoolean(PageAgentState::showSizeOnResize, show); 1300 m_state->setBoolean(PageAgentState::showSizeOnResize, show);
1295 m_state->setBoolean(PageAgentState::showGridOnResize, showGrid && *showGrid) ; 1301 m_state->setBoolean(PageAgentState::showGridOnResize, showGrid && *showGrid) ;
1296 } 1302 }
1297 1303
1298 } // namespace WebCore 1304 } // namespace WebCore
1299 1305
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorPageAgent.h ('k') | Source/devtools/devtools.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698