| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 5 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 #include <numeric> | 8 #include <numeric> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 #include "content/public/browser/render_view_host.h" | 92 #include "content/public/browser/render_view_host.h" |
| 93 #include "content/public/browser/render_widget_host_view.h" | 93 #include "content/public/browser/render_widget_host_view.h" |
| 94 #include "content/public/browser/web_contents.h" | 94 #include "content/public/browser/web_contents.h" |
| 95 #import "ui/base/cocoa/cocoa_base_utils.h" | 95 #import "ui/base/cocoa/cocoa_base_utils.h" |
| 96 #import "ui/base/cocoa/nsview_additions.h" | 96 #import "ui/base/cocoa/nsview_additions.h" |
| 97 #include "ui/base/l10n/l10n_util.h" | 97 #include "ui/base/l10n/l10n_util.h" |
| 98 #include "ui/base/l10n/l10n_util_mac.h" | 98 #include "ui/base/l10n/l10n_util_mac.h" |
| 99 #include "ui/gfx/mac/scoped_ns_disable_screen_updates.h" | 99 #include "ui/gfx/mac/scoped_ns_disable_screen_updates.h" |
| 100 | 100 |
| 101 using bookmarks::BookmarkModel; | 101 using bookmarks::BookmarkModel; |
| 102 using bookmarks::BookmarkNode; |
| 102 using l10n_util::GetStringUTF16; | 103 using l10n_util::GetStringUTF16; |
| 103 using l10n_util::GetNSStringWithFixup; | 104 using l10n_util::GetNSStringWithFixup; |
| 104 using l10n_util::GetNSStringFWithFixup; | 105 using l10n_util::GetNSStringFWithFixup; |
| 105 | 106 |
| 106 // ORGANIZATION: This is a big file. It is (in principle) organized as follows | 107 // ORGANIZATION: This is a big file. It is (in principle) organized as follows |
| 107 // (in order): | 108 // (in order): |
| 108 // 1. Interfaces. Very short, one-time-use classes may include an implementation | 109 // 1. Interfaces. Very short, one-time-use classes may include an implementation |
| 109 // immediately after their interface. | 110 // immediately after their interface. |
| 110 // 2. The general implementation section, ordered as follows: | 111 // 2. The general implementation section, ordered as follows: |
| 111 // i. Public methods and overrides. | 112 // i. Public methods and overrides. |
| (...skipping 2120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2232 | 2233 |
| 2233 - (BOOL)supportsBookmarkBar { | 2234 - (BOOL)supportsBookmarkBar { |
| 2234 return [self supportsWindowFeature:Browser::FEATURE_BOOKMARKBAR]; | 2235 return [self supportsWindowFeature:Browser::FEATURE_BOOKMARKBAR]; |
| 2235 } | 2236 } |
| 2236 | 2237 |
| 2237 - (BOOL)isTabbedWindow { | 2238 - (BOOL)isTabbedWindow { |
| 2238 return browser_->is_type_tabbed(); | 2239 return browser_->is_type_tabbed(); |
| 2239 } | 2240 } |
| 2240 | 2241 |
| 2241 @end // @implementation BrowserWindowController(WindowType) | 2242 @end // @implementation BrowserWindowController(WindowType) |
| OLD | NEW |