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

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

Issue 18009003: Instant Extended: Delete unused overlay code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 5 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 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_
7 7
8 // A class acting as the Objective-C controller for the Browser 8 // A class acting as the Objective-C controller for the Browser
9 // object. Handles interactions between Cocoa and the cross-platform 9 // object. Handles interactions between Cocoa and the cross-platform
10 // code. Each window has a single toolbar and, by virtue of being a 10 // code. Each window has a single toolbar and, by virtue of being a
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // When going fullscreen for a tab, we need to store the URL and the 153 // When going fullscreen for a tab, we need to store the URL and the
154 // fullscreen type, since we can't show the bubble until 154 // fullscreen type, since we can't show the bubble until
155 // -windowDidEnterFullScreen: gets called. 155 // -windowDidEnterFullScreen: gets called.
156 GURL fullscreenUrl_; 156 GURL fullscreenUrl_;
157 FullscreenExitBubbleType fullscreenBubbleType_; 157 FullscreenExitBubbleType fullscreenBubbleType_;
158 158
159 // The Extension Command Registry used to determine which keyboard events to 159 // The Extension Command Registry used to determine which keyboard events to
160 // handle. 160 // handle.
161 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; 161 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_;
162 162
163 // The offset between the bottom of the toolbar and web contents. This is used
164 // to push the web contents below the bookmark bar.
165 CGFloat toolbarToWebContentsOffset_;
166
167 // The number of history overlay views being shown. 163 // The number of history overlay views being shown.
168 NSUInteger historyOverlayCount_; 164 NSUInteger historyOverlayCount_;
169 } 165 }
170 166
171 // A convenience class method which gets the |BrowserWindowController| for a 167 // A convenience class method which gets the |BrowserWindowController| for a
172 // given window. This method returns nil if no window in the chain has a BWC. 168 // given window. This method returns nil if no window in the chain has a BWC.
173 + (BrowserWindowController*)browserWindowControllerForWindow:(NSWindow*)window; 169 + (BrowserWindowController*)browserWindowControllerForWindow:(NSWindow*)window;
174 170
175 // A convenience class method which gets the |BrowserWindowController| for a 171 // A convenience class method which gets the |BrowserWindowController| for a
176 // given view. This is the controller for the window containing |view|, if it 172 // given view. This is the controller for the window containing |view|, if it
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 // Returns the frame, in Cocoa (unflipped) screen coordinates, of the area where 334 // Returns the frame, in Cocoa (unflipped) screen coordinates, of the area where
339 // Instant results are. If Instant is not showing, returns the frame of where 335 // Instant results are. If Instant is not showing, returns the frame of where
340 // it would be. 336 // it would be.
341 - (NSRect)instantFrame; 337 - (NSRect)instantFrame;
342 338
343 // Called when the Add Search Engine dialog is closed. 339 // Called when the Add Search Engine dialog is closed.
344 - (void)sheetDidEnd:(NSWindow*)sheet 340 - (void)sheetDidEnd:(NSWindow*)sheet
345 returnCode:(NSInteger)code 341 returnCode:(NSInteger)code
346 context:(void*)context; 342 context:(void*)context;
347 343
348 // Updates the bookmark bar visibility based on the instant overlay state.
349 - (void)updateBookmarkBarStateForInstantOverlay;
350
351 // Called when the find bar visibility changes. This is used to update the 344 // Called when the find bar visibility changes. This is used to update the
352 // allowOverlappingViews state. 345 // allowOverlappingViews state.
353 - (void)onFindBarVisibilityChanged; 346 - (void)onFindBarVisibilityChanged;
354 347
355 // Called when a history overlay is shown. This is used to update the 348 // Called when a history overlay is shown. This is used to update the
356 // allowOverlappingViews state. 349 // allowOverlappingViews state.
357 - (void)onHistoryOverlayShown; 350 - (void)onHistoryOverlayShown;
358 351
359 // Called when a history overlay is hidden. This is used to update the 352 // Called when a history overlay is hidden. This is used to update the
360 // allowOverlappingViews state. 353 // allowOverlappingViews state.
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; 498 - (FullscreenExitBubbleController*)fullscreenExitBubbleController;
506 499
507 // Gets the rect, in window base coordinates, that the omnibox popup should be 500 // Gets the rect, in window base coordinates, that the omnibox popup should be
508 // positioned relative to. 501 // positioned relative to.
509 - (NSRect)omniboxPopupAnchorRect; 502 - (NSRect)omniboxPopupAnchorRect;
510 503
511 @end // @interface BrowserWindowController (TestingAPI) 504 @end // @interface BrowserWindowController (TestingAPI)
512 505
513 506
514 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ 507 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/ui/cocoa/browser_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698