| 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_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
| 7 | 7 |
| 8 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "chrome/browser/extensions/extension_keybinding_registry.h" | 10 #include "chrome/browser/extensions/extension_keybinding_registry.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 void RotatePaneFocus(bool forwards) override; | 99 void RotatePaneFocus(bool forwards) override; |
| 100 bool IsBookmarkBarVisible() const override; | 100 bool IsBookmarkBarVisible() const override; |
| 101 bool IsBookmarkBarAnimating() const override; | 101 bool IsBookmarkBarAnimating() const override; |
| 102 bool IsTabStripEditable() const override; | 102 bool IsTabStripEditable() const override; |
| 103 bool IsToolbarVisible() const override; | 103 bool IsToolbarVisible() const override; |
| 104 gfx::Rect GetRootWindowResizerRect() const override; | 104 gfx::Rect GetRootWindowResizerRect() const override; |
| 105 void ConfirmAddSearchProvider(TemplateURL* template_url, | 105 void ConfirmAddSearchProvider(TemplateURL* template_url, |
| 106 Profile* profile) override; | 106 Profile* profile) override; |
| 107 void ShowUpdateChromeDialog() override; | 107 void ShowUpdateChromeDialog() override; |
| 108 void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) override; | 108 void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) override; |
| 109 void ShowBookmarkAppBubble(const WebApplicationInfo& web_app_info, | 109 void ShowBookmarkAppBubble( |
| 110 const std::string& extension_id) override; | 110 const WebApplicationInfo& web_app_info, |
| 111 const ShowBookmarkAppBubbleCallback& callback) override; |
| 111 void ShowTranslateBubble(content::WebContents* contents, | 112 void ShowTranslateBubble(content::WebContents* contents, |
| 112 translate::TranslateStep step, | 113 translate::TranslateStep step, |
| 113 translate::TranslateErrors::Type error_type, | 114 translate::TranslateErrors::Type error_type, |
| 114 bool is_user_gesture) override; | 115 bool is_user_gesture) override; |
| 115 bool ShowSessionCrashedBubble() override; | 116 bool ShowSessionCrashedBubble() override; |
| 116 bool IsProfileResetBubbleSupported() const override; | 117 bool IsProfileResetBubbleSupported() const override; |
| 117 GlobalErrorBubbleViewBase* ShowProfileResetBubble( | 118 GlobalErrorBubbleViewBase* ShowProfileResetBubble( |
| 118 const base::WeakPtr<ProfileResetGlobalError>& global_error) override; | 119 const base::WeakPtr<ProfileResetGlobalError>& global_error) override; |
| 119 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 120 #if defined(ENABLE_ONE_CLICK_SIGNIN) |
| 120 void ShowOneClickSigninBubble( | 121 void ShowOneClickSigninBubble( |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 NSWindow* window() const; // Accessor for the (current) |NSWindow|. | 179 NSWindow* window() const; // Accessor for the (current) |NSWindow|. |
| 179 | 180 |
| 180 Browser* browser_; // weak, owned by controller | 181 Browser* browser_; // weak, owned by controller |
| 181 BrowserWindowController* controller_; // weak, owns us | 182 BrowserWindowController* controller_; // weak, owns us |
| 182 base::scoped_nsobject<NSString> pending_window_title_; | 183 base::scoped_nsobject<NSString> pending_window_title_; |
| 183 ui::WindowShowState initial_show_state_; | 184 ui::WindowShowState initial_show_state_; |
| 184 NSInteger attention_request_id_; // identifier from requestUserAttention | 185 NSInteger attention_request_id_; // identifier from requestUserAttention |
| 185 }; | 186 }; |
| 186 | 187 |
| 187 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 188 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
| OLD | NEW |