window_touch_bar_delegate.h 660 B

1234567891011121314151617181920
  1. // Copyright 2018 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_REMOTE_COCOA_APP_SHIM_WINDOW_TOUCH_BAR_DELEGATE_H_
  5. #define COMPONENTS_REMOTE_COCOA_APP_SHIM_WINDOW_TOUCH_BAR_DELEGATE_H_
  6. #import <Cocoa/Cocoa.h>
  7. #include <os/availability.h>
  8. // Bridge delegate class for NativeWidgetMacNSWindow and
  9. // BrowserWindowTouchBarMac.
  10. @protocol WindowTouchBarDelegate <NSObject>
  11. // Creates and returns a touch bar for the browser window.
  12. - (NSTouchBar*)makeTouchBar;
  13. @end
  14. #endif // COMPONENTS_REMOTE_COCOA_APP_SHIM_WINDOW_TOUCH_BAR_DELEGATE_H_