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

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: Patch after review comments. 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 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 void InspectorPageAgent::didScroll() 994 void InspectorPageAgent::didScroll()
995 { 995 {
996 if (m_enabled) 996 if (m_enabled)
997 m_overlay->update(); 997 m_overlay->update();
998 } 998 }
999 999
1000 void InspectorPageAgent::didResizeMainFrame() 1000 void InspectorPageAgent::didResizeMainFrame()
1001 { 1001 {
1002 if (m_enabled && m_state->getBoolean(PageAgentState::showSizeOnResize)) 1002 if (m_enabled && m_state->getBoolean(PageAgentState::showSizeOnResize))
1003 m_overlay->showAndHideViewSize(m_state->getBoolean(PageAgentState::showG ridOnResize)); 1003 m_overlay->showAndHideViewSize(m_state->getBoolean(PageAgentState::showG ridOnResize));
1004 m_frontend->frameResized();
1004 } 1005 }
1005 1006
1006 void InspectorPageAgent::didRecalculateStyle() 1007 void InspectorPageAgent::didRecalculateStyle()
1007 { 1008 {
1008 if (m_enabled) 1009 if (m_enabled)
1009 m_overlay->update(); 1010 m_overlay->update();
1010 } 1011 }
1011 1012
1012 void InspectorPageAgent::scriptsEnabled(bool isEnabled) 1013 void InspectorPageAgent::scriptsEnabled(bool isEnabled)
1013 { 1014 {
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 } 1247 }
1247 1248
1248 void InspectorPageAgent::setShowViewportSizeOnResize(ErrorString*, bool show, co nst bool* showGrid) 1249 void InspectorPageAgent::setShowViewportSizeOnResize(ErrorString*, bool show, co nst bool* showGrid)
1249 { 1250 {
1250 m_state->setBoolean(PageAgentState::showSizeOnResize, show); 1251 m_state->setBoolean(PageAgentState::showSizeOnResize, show);
1251 m_state->setBoolean(PageAgentState::showGridOnResize, showGrid && *showGrid) ; 1252 m_state->setBoolean(PageAgentState::showGridOnResize, showGrid && *showGrid) ;
1252 } 1253 }
1253 1254
1254 } // namespace WebCore 1255 } // namespace WebCore
1255 1256
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