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

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

Issue 9420007: Move RenderWidgetHostView into content namespace. Fix include paths. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix linux_chromeos_gtk build issue not caught by trybots. Created 8 years, 10 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) 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 #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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 #import "chrome/browser/ui/cocoa/tabs/tab_view.h" 56 #import "chrome/browser/ui/cocoa/tabs/tab_view.h"
57 #import "chrome/browser/ui/cocoa/toolbar/toolbar_controller.h" 57 #import "chrome/browser/ui/cocoa/toolbar/toolbar_controller.h"
58 #include "chrome/browser/ui/omnibox/location_bar.h" 58 #include "chrome/browser/ui/omnibox/location_bar.h"
59 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 59 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
60 #include "chrome/browser/ui/tabs/dock_info.h" 60 #include "chrome/browser/ui/tabs/dock_info.h"
61 #include "chrome/browser/ui/toolbar/encoding_menu_controller.h" 61 #include "chrome/browser/ui/toolbar/encoding_menu_controller.h"
62 #include "chrome/browser/ui/window_sizer.h" 62 #include "chrome/browser/ui/window_sizer.h"
63 #include "chrome/common/chrome_switches.h" 63 #include "chrome/common/chrome_switches.h"
64 #include "chrome/common/url_constants.h" 64 #include "chrome/common/url_constants.h"
65 #include "content/browser/renderer_host/render_view_host.h" 65 #include "content/browser/renderer_host/render_view_host.h"
66 #include "content/browser/renderer_host/render_widget_host_view.h" 66 #include "content/public/browser/render_widget_host_view.h"
67 #include "content/public/browser/web_contents.h" 67 #include "content/public/browser/web_contents.h"
68 #include "grit/generated_resources.h" 68 #include "grit/generated_resources.h"
69 #include "grit/locale_settings.h" 69 #include "grit/locale_settings.h"
70 #include "ui/base/l10n/l10n_util.h" 70 #include "ui/base/l10n/l10n_util.h"
71 #include "ui/base/l10n/l10n_util_mac.h" 71 #include "ui/base/l10n/l10n_util_mac.h"
72 #include "ui/gfx/mac/scoped_ns_disable_screen_updates.h" 72 #include "ui/gfx/mac/scoped_ns_disable_screen_updates.h"
73 73
74 // ORGANIZATION: This is a big file. It is (in principle) organized as follows 74 // ORGANIZATION: This is a big file. It is (in principle) organized as follows
75 // (in order): 75 // (in order):
76 // 1. Interfaces. Very short, one-time-use classes may include an implementation 76 // 1. Interfaces. Very short, one-time-use classes may include an implementation
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 // window growth/shrinkage (at the top/bottom) have to be tracked incrementally. 140 // window growth/shrinkage (at the top/bottom) have to be tracked incrementally.
141 // Allowing shrinking from the zoomed state also requires tracking: We check on 141 // Allowing shrinking from the zoomed state also requires tracking: We check on
142 // any shrink whether we're both zoomed and have previously grown -- if so, we 142 // any shrink whether we're both zoomed and have previously grown -- if so, we
143 // set a flag, and constrain any resize by the allowed amounts. On further 143 // set a flag, and constrain any resize by the allowed amounts. On further
144 // shrinks, we check the flag (since the size/position of the window will no 144 // shrinks, we check the flag (since the size/position of the window will no
145 // longer indicate that the window is shrinking from an apparent zoomed state) 145 // longer indicate that the window is shrinking from an apparent zoomed state)
146 // and if it's set we continue to constrain the resize. 146 // and if it's set we continue to constrain the resize.
147 147
148 using content::OpenURLParams; 148 using content::OpenURLParams;
149 using content::Referrer; 149 using content::Referrer;
150 using content::RenderWidgetHostView;
150 using content::WebContents; 151 using content::WebContents;
151 152
152 @interface NSWindow (NSPrivateApis) 153 @interface NSWindow (NSPrivateApis)
153 // Note: These functions are private, use -[NSObject respondsToSelector:] 154 // Note: These functions are private, use -[NSObject respondsToSelector:]
154 // before calling them. 155 // before calling them.
155 156
156 - (void)setBottomCornerRounded:(BOOL)rounded; 157 - (void)setBottomCornerRounded:(BOOL)rounded;
157 158
158 - (NSRect)_growBoxRect; 159 - (NSRect)_growBoxRect;
159 160
(...skipping 2006 matching lines...) Expand 10 before | Expand all | Expand 10 after
2166 2167
2167 - (BOOL)supportsBookmarkBar { 2168 - (BOOL)supportsBookmarkBar {
2168 return [self supportsWindowFeature:Browser::FEATURE_BOOKMARKBAR]; 2169 return [self supportsWindowFeature:Browser::FEATURE_BOOKMARKBAR];
2169 } 2170 }
2170 2171
2171 - (BOOL)isTabbedWindow { 2172 - (BOOL)isTabbedWindow {
2172 return browser_->is_type_tabbed(); 2173 return browser_->is_type_tabbed();
2173 } 2174 }
2174 2175
2175 @end // @implementation BrowserWindowController(WindowType) 2176 @end // @implementation BrowserWindowController(WindowType)
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/spelling_menu_observer.cc ('k') | chrome/browser/ui/cocoa/browser_window_controller_private.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698