| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 #include "chrome/common/profile_management_switches.h" | 75 #include "chrome/common/profile_management_switches.h" |
| 76 #include "chrome/common/url_constants.h" | 76 #include "chrome/common/url_constants.h" |
| 77 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 77 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
| 78 #include "content/public/browser/render_view_host.h" | 78 #include "content/public/browser/render_view_host.h" |
| 79 #include "content/public/browser/render_widget_host_view.h" | 79 #include "content/public/browser/render_widget_host_view.h" |
| 80 #include "content/public/browser/web_contents.h" | 80 #include "content/public/browser/web_contents.h" |
| 81 #include "content/public/browser/web_contents_view.h" | 81 #include "content/public/browser/web_contents_view.h" |
| 82 #include "grit/chromium_strings.h" | 82 #include "grit/chromium_strings.h" |
| 83 #include "grit/generated_resources.h" | 83 #include "grit/generated_resources.h" |
| 84 #include "grit/locale_settings.h" | 84 #include "grit/locale_settings.h" |
| 85 #import "ui/base/cocoa/cocoa_event_utils.h" | 85 #import "ui/base/cocoa/cocoa_base_utils.h" |
| 86 #include "ui/base/l10n/l10n_util.h" | 86 #include "ui/base/l10n/l10n_util.h" |
| 87 #include "ui/base/l10n/l10n_util_mac.h" | 87 #include "ui/base/l10n/l10n_util_mac.h" |
| 88 #include "ui/gfx/mac/scoped_ns_disable_screen_updates.h" | 88 #include "ui/gfx/mac/scoped_ns_disable_screen_updates.h" |
| 89 | 89 |
| 90 using l10n_util::GetStringUTF16; | 90 using l10n_util::GetStringUTF16; |
| 91 using l10n_util::GetNSStringWithFixup; | 91 using l10n_util::GetNSStringWithFixup; |
| 92 using l10n_util::GetNSStringFWithFixup; | 92 using l10n_util::GetNSStringFWithFixup; |
| 93 | 93 |
| 94 // ORGANIZATION: This is a big file. It is (in principle) organized as follows | 94 // ORGANIZATION: This is a big file. It is (in principle) organized as follows |
| 95 // (in order): | 95 // (in order): |
| (...skipping 2139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2235 | 2235 |
| 2236 - (BOOL)supportsBookmarkBar { | 2236 - (BOOL)supportsBookmarkBar { |
| 2237 return [self supportsWindowFeature:Browser::FEATURE_BOOKMARKBAR]; | 2237 return [self supportsWindowFeature:Browser::FEATURE_BOOKMARKBAR]; |
| 2238 } | 2238 } |
| 2239 | 2239 |
| 2240 - (BOOL)isTabbedWindow { | 2240 - (BOOL)isTabbedWindow { |
| 2241 return browser_->is_type_tabbed(); | 2241 return browser_->is_type_tabbed(); |
| 2242 } | 2242 } |
| 2243 | 2243 |
| 2244 @end // @implementation BrowserWindowController(WindowType) | 2244 @end // @implementation BrowserWindowController(WindowType) |
| OLD | NEW |