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

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

Issue 84643002: Update the metrics side bar pane and computed style pane after main frame resize. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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 /* 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 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 void InspectorPageAgent::didScroll() 997 void InspectorPageAgent::didScroll()
998 { 998 {
999 if (m_enabled) 999 if (m_enabled)
1000 m_overlay->update(); 1000 m_overlay->update();
1001 } 1001 }
1002 1002
1003 void InspectorPageAgent::didResizeMainFrame() 1003 void InspectorPageAgent::didResizeMainFrame()
1004 { 1004 {
1005 if (m_enabled && m_state->getBoolean(PageAgentState::showSizeOnResize)) 1005 if (m_enabled && m_state->getBoolean(PageAgentState::showSizeOnResize))
1006 m_overlay->showAndHideViewSize(m_state->getBoolean(PageAgentState::showG ridOnResize)); 1006 m_overlay->showAndHideViewSize(m_state->getBoolean(PageAgentState::showG ridOnResize));
1007 m_frontend->frameResized();
1007 } 1008 }
1008 1009
1009 void InspectorPageAgent::didRecalculateStyle() 1010 void InspectorPageAgent::didRecalculateStyle()
1010 { 1011 {
1011 if (m_enabled) 1012 if (m_enabled)
1012 m_overlay->update(); 1013 m_overlay->update();
1013 } 1014 }
1014 1015
1015 void InspectorPageAgent::scriptsEnabled(bool isEnabled) 1016 void InspectorPageAgent::scriptsEnabled(bool isEnabled)
1016 { 1017 {
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
1247 } 1248 }
1248 1249
1249 void InspectorPageAgent::setShowViewportSizeOnResize(ErrorString*, bool show, co nst bool* showGrid) 1250 void InspectorPageAgent::setShowViewportSizeOnResize(ErrorString*, bool show, co nst bool* showGrid)
1250 { 1251 {
1251 m_state->setBoolean(PageAgentState::showSizeOnResize, show); 1252 m_state->setBoolean(PageAgentState::showSizeOnResize, show);
1252 m_state->setBoolean(PageAgentState::showGridOnResize, showGrid && *showGrid) ; 1253 m_state->setBoolean(PageAgentState::showGridOnResize, showGrid && *showGrid) ;
1253 } 1254 }
1254 1255
1255 } // namespace WebCore 1256 } // namespace WebCore
1256 1257
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/MetricsSidebarPane.js » ('j') | Source/devtools/front_end/MetricsSidebarPane.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698