OLD | NEW |
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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 // See TabUtils::TabAlertState for a list of all possible alert states. | 383 // See TabUtils::TabAlertState for a list of all possible alert states. |
384 - (void)setAlertState:(TabAlertState)alertState; | 384 - (void)setAlertState:(TabAlertState)alertState; |
385 | 385 |
386 // Returns current alert state, determined by the alert state of tabs, set by | 386 // Returns current alert state, determined by the alert state of tabs, set by |
387 // UpdateAlertState. | 387 // UpdateAlertState. |
388 - (TabAlertState)alertState; | 388 - (TabAlertState)alertState; |
389 | 389 |
390 // Returns the BrowserWindowTouchBar object associated with the window. | 390 // Returns the BrowserWindowTouchBar object associated with the window. |
391 - (BrowserWindowTouchBar*)browserWindowTouchBar; | 391 - (BrowserWindowTouchBar*)browserWindowTouchBar; |
392 | 392 |
| 393 // Invalidates the browser's touch bar. |
| 394 - (void)invalidateTouchBar; |
| 395 |
393 @end // @interface BrowserWindowController | 396 @end // @interface BrowserWindowController |
394 | 397 |
395 | 398 |
396 // Methods having to do with the window type (normal/popup/app, and whether the | 399 // Methods having to do with the window type (normal/popup/app, and whether the |
397 // window has various features. | 400 // window has various features. |
398 @interface BrowserWindowController(WindowType) | 401 @interface BrowserWindowController(WindowType) |
399 | 402 |
400 // Determines whether this controller's window supports a given feature (i.e., | 403 // Determines whether this controller's window supports a given feature (i.e., |
401 // whether a given feature is or can be shown in the window). | 404 // whether a given feature is or can be shown in the window). |
402 // TODO(viettrungluu): |feature| is really should be |Browser::Feature|, but I | 405 // TODO(viettrungluu): |feature| is really should be |Browser::Feature|, but I |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 // Returns the fullscreen toolbar controller. | 614 // Returns the fullscreen toolbar controller. |
612 - (FullscreenToolbarController*)fullscreenToolbarController; | 615 - (FullscreenToolbarController*)fullscreenToolbarController; |
613 | 616 |
614 // Sets the fullscreen toolbar controller. | 617 // Sets the fullscreen toolbar controller. |
615 - (void)setFullscreenToolbarController:(FullscreenToolbarController*)controller; | 618 - (void)setFullscreenToolbarController:(FullscreenToolbarController*)controller; |
616 | 619 |
617 @end // @interface BrowserWindowController (TestingAPI) | 620 @end // @interface BrowserWindowController (TestingAPI) |
618 | 621 |
619 | 622 |
620 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 623 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |