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

Side by Side Diff: chrome/browser/ui/zoom/zoom_controller.cc

Issue 543663002: Componentize sad_tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix url_constants.cc Created 6 years, 2 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/ui/zoom/zoom_controller.h" 5 #include "chrome/browser/ui/zoom/zoom_controller.h"
6 6
7 #include "chrome/browser/ui/sad_tab.h"
8 #include "chrome/browser/ui/zoom/zoom_event_manager.h" 7 #include "chrome/browser/ui/zoom/zoom_event_manager.h"
9 #include "chrome/browser/ui/zoom/zoom_observer.h" 8 #include "chrome/browser/ui/zoom/zoom_observer.h"
10 #include "content/public/browser/host_zoom_map.h" 9 #include "content/public/browser/host_zoom_map.h"
11 #include "content/public/browser/navigation_entry.h" 10 #include "content/public/browser/navigation_entry.h"
12 #include "content/public/browser/render_process_host.h" 11 #include "content/public/browser/render_process_host.h"
13 #include "content/public/browser/render_view_host.h" 12 #include "content/public/browser/render_view_host.h"
14 #include "content/public/browser/web_contents.h" 13 #include "content/public/browser/web_contents.h"
15 #include "content/public/common/page_type.h" 14 #include "content/public/common/page_type.h"
16 #include "content/public/common/page_zoom.h" 15 #include "content/public/common/page_zoom.h"
17 #include "extensions/common/extension.h" 16 #include "extensions/common/extension.h"
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 } else { 290 } else {
292 // TODO(wjmaclean) Should we consider having HostZoomMap send both old and 291 // TODO(wjmaclean) Should we consider having HostZoomMap send both old and
293 // new zoom levels here? 292 // new zoom levels here?
294 double zoom_level = GetZoomLevel(); 293 double zoom_level = GetZoomLevel();
295 ZoomChangedEventData zoom_change_data( 294 ZoomChangedEventData zoom_change_data(
296 web_contents(), zoom_level, zoom_level, zoom_mode_, can_show_bubble); 295 web_contents(), zoom_level, zoom_level, zoom_mode_, can_show_bubble);
297 FOR_EACH_OBSERVER( 296 FOR_EACH_OBSERVER(
298 ZoomObserver, observers_, OnZoomChanged(zoom_change_data)); 297 ZoomObserver, observers_, OnZoomChanged(zoom_change_data));
299 } 298 }
300 } 299 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698