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

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: Throttling the pane updates! 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 982 matching lines...) Expand 10 before | Expand all | Expand 10 after
993 void InspectorPageAgent::didScroll() 993 void InspectorPageAgent::didScroll()
994 { 994 {
995 if (m_enabled) 995 if (m_enabled)
996 m_overlay->update(); 996 m_overlay->update();
997 } 997 }
998 998
999 void InspectorPageAgent::didResizeMainFrame() 999 void InspectorPageAgent::didResizeMainFrame()
1000 { 1000 {
1001 if (m_enabled && m_state->getBoolean(PageAgentState::showSizeOnResize)) 1001 if (m_enabled && m_state->getBoolean(PageAgentState::showSizeOnResize))
1002 m_overlay->showAndHideViewSize(m_state->getBoolean(PageAgentState::showG ridOnResize)); 1002 m_overlay->showAndHideViewSize(m_state->getBoolean(PageAgentState::showG ridOnResize));
1003 m_frontend->frameResized();
1003 } 1004 }
1004 1005
1005 void InspectorPageAgent::didRecalculateStyle() 1006 void InspectorPageAgent::didRecalculateStyle()
1006 { 1007 {
1007 if (m_enabled) 1008 if (m_enabled)
1008 m_overlay->update(); 1009 m_overlay->update();
1009 } 1010 }
1010 1011
1011 void InspectorPageAgent::scriptsEnabled(bool isEnabled) 1012 void InspectorPageAgent::scriptsEnabled(bool isEnabled)
1012 { 1013 {
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
1242 } 1243 }
1243 1244
1244 void InspectorPageAgent::setShowViewportSizeOnResize(ErrorString*, bool show, co nst bool* showGrid) 1245 void InspectorPageAgent::setShowViewportSizeOnResize(ErrorString*, bool show, co nst bool* showGrid)
1245 { 1246 {
1246 m_state->setBoolean(PageAgentState::showSizeOnResize, show); 1247 m_state->setBoolean(PageAgentState::showSizeOnResize, show);
1247 m_state->setBoolean(PageAgentState::showGridOnResize, showGrid && *showGrid) ; 1248 m_state->setBoolean(PageAgentState::showGridOnResize, showGrid && *showGrid) ;
1248 } 1249 }
1249 1250
1250 } // namespace WebCore 1251 } // namespace WebCore
1251 1252
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/MetricsSidebarPane.js » ('j') | Source/devtools/front_end/StylesSidebarPane.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698