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

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_controller_private.mm

Issue 6326006: [Mac] Organize some files into chrome/browser/ui/cocoa/toolbar/.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #import "chrome/browser/ui/cocoa/browser_window_controller_private.h" 5 #import "chrome/browser/ui/cocoa/browser_window_controller_private.h"
6 6
7 #import "base/scoped_nsobject.h" 7 #import "base/scoped_nsobject.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/prefs/pref_service.h" 9 #include "chrome/browser/prefs/pref_service.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/renderer_host/render_widget_host_view.h" 11 #include "chrome/browser/renderer_host/render_widget_host_view.h"
12 #include "chrome/browser/tab_contents/tab_contents.h" 12 #include "chrome/browser/tab_contents/tab_contents.h"
13 #include "chrome/browser/tab_contents/tab_contents_view.h" 13 #include "chrome/browser/tab_contents/tab_contents_view.h"
14 #include "chrome/browser/themes/browser_theme_provider.h" 14 #include "chrome/browser/themes/browser_theme_provider.h"
15 #include "chrome/browser/ui/browser_list.h" 15 #include "chrome/browser/ui/browser_list.h"
16 #import "chrome/browser/ui/cocoa/fast_resize_view.h" 16 #import "chrome/browser/ui/cocoa/fast_resize_view.h"
17 #import "chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.h" 17 #import "chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.h"
18 #import "chrome/browser/ui/cocoa/floating_bar_backing_view.h" 18 #import "chrome/browser/ui/cocoa/floating_bar_backing_view.h"
19 #import "chrome/browser/ui/cocoa/framed_browser_window.h" 19 #import "chrome/browser/ui/cocoa/framed_browser_window.h"
20 #import "chrome/browser/ui/cocoa/fullscreen_controller.h" 20 #import "chrome/browser/ui/cocoa/fullscreen_controller.h"
21 #import "chrome/browser/ui/cocoa/previewable_contents_controller.h" 21 #import "chrome/browser/ui/cocoa/previewable_contents_controller.h"
22 #import "chrome/browser/ui/cocoa/tabs/side_tab_strip_controller.h" 22 #import "chrome/browser/ui/cocoa/tabs/side_tab_strip_controller.h"
23 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h" 23 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h"
24 #import "chrome/browser/ui/cocoa/tabs/tab_strip_view.h" 24 #import "chrome/browser/ui/cocoa/tabs/tab_strip_view.h"
25 #import "chrome/browser/ui/cocoa/toolbar_controller.h" 25 #import "chrome/browser/ui/cocoa/toolbar/toolbar_controller.h"
26 #include "chrome/common/pref_names.h" 26 #include "chrome/common/pref_names.h"
27 27
28 namespace { 28 namespace {
29 29
30 // Space between the incognito badge and the right edge of the window. 30 // Space between the incognito badge and the right edge of the window.
31 const CGFloat kIncognitoBadgeOffset = 4; 31 const CGFloat kIncognitoBadgeOffset = 4;
32 32
33 // Insets for the location bar, used when the full toolbar is hidden. 33 // Insets for the location bar, used when the full toolbar is hidden.
34 // TODO(viettrungluu): We can argue about the "correct" insetting; I like the 34 // TODO(viettrungluu): We can argue about the "correct" insetting; I like the
35 // following best, though arguably 0 inset is better/more correct. 35 // following best, though arguably 0 inset is better/more correct.
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 - (void)disableBarVisibilityUpdates { 498 - (void)disableBarVisibilityUpdates {
499 // Early escape if there's nothing to do. 499 // Early escape if there's nothing to do.
500 if (!barVisibilityUpdatesEnabled_) 500 if (!barVisibilityUpdatesEnabled_)
501 return; 501 return;
502 502
503 barVisibilityUpdatesEnabled_ = NO; 503 barVisibilityUpdatesEnabled_ = NO;
504 [fullscreenController_ cancelAnimationAndTimers]; 504 [fullscreenController_ cancelAnimationAndTimers];
505 } 505 }
506 506
507 @end // @implementation BrowserWindowController(Private) 507 @end // @implementation BrowserWindowController(Private)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698