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

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

Issue 87503004: Pass the Translate error type to the bubble (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (rebasing) Created 7 years 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
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_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/bookmarks/bookmark_model.h" 10 #include "chrome/browser/bookmarks/bookmark_model.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 virtual bool IsTabStripEditable() const OVERRIDE; 96 virtual bool IsTabStripEditable() const OVERRIDE;
97 virtual bool IsToolbarVisible() const OVERRIDE; 97 virtual bool IsToolbarVisible() const OVERRIDE;
98 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; 98 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE;
99 virtual void ConfirmAddSearchProvider(TemplateURL* template_url, 99 virtual void ConfirmAddSearchProvider(TemplateURL* template_url,
100 Profile* profile) OVERRIDE; 100 Profile* profile) OVERRIDE;
101 virtual void ShowUpdateChromeDialog() OVERRIDE; 101 virtual void ShowUpdateChromeDialog() OVERRIDE;
102 virtual void ShowBookmarkBubble(const GURL& url, 102 virtual void ShowBookmarkBubble(const GURL& url,
103 bool already_bookmarked) OVERRIDE; 103 bool already_bookmarked) OVERRIDE;
104 virtual void ShowTranslateBubble( 104 virtual void ShowTranslateBubble(
105 content::WebContents* contents, 105 content::WebContents* contents,
106 TranslateBubbleModel::ViewState view_state) OVERRIDE; 106 TranslateBubbleModel::ViewState view_state,
107 TranslateErrors::Type error_type) OVERRIDE;
107 #if defined(ENABLE_ONE_CLICK_SIGNIN) 108 #if defined(ENABLE_ONE_CLICK_SIGNIN)
108 virtual void ShowOneClickSigninBubble( 109 virtual void ShowOneClickSigninBubble(
109 OneClickSigninBubbleType type, 110 OneClickSigninBubbleType type,
110 const string16& email, 111 const string16& email,
111 const string16& error_message, 112 const string16& error_message,
112 const StartSyncCallback& start_sync_callback) OVERRIDE; 113 const StartSyncCallback& start_sync_callback) OVERRIDE;
113 #endif 114 #endif
114 virtual bool IsDownloadShelfVisible() const OVERRIDE; 115 virtual bool IsDownloadShelfVisible() const OVERRIDE;
115 virtual DownloadShelf* GetDownloadShelf() OVERRIDE; 116 virtual DownloadShelf* GetDownloadShelf() OVERRIDE;
116 virtual void ConfirmBrowserCloseWithPendingDownloads( 117 virtual void ConfirmBrowserCloseWithPendingDownloads(
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 NSWindow* window() const; // Accessor for the (current) |NSWindow|. 174 NSWindow* window() const; // Accessor for the (current) |NSWindow|.
174 175
175 Browser* browser_; // weak, owned by controller 176 Browser* browser_; // weak, owned by controller
176 BrowserWindowController* controller_; // weak, owns us 177 BrowserWindowController* controller_; // weak, owns us
177 base::scoped_nsobject<NSString> pending_window_title_; 178 base::scoped_nsobject<NSString> pending_window_title_;
178 ui::WindowShowState initial_show_state_; 179 ui::WindowShowState initial_show_state_;
179 NSInteger attention_request_id_; // identifier from requestUserAttention 180 NSInteger attention_request_id_; // identifier from requestUserAttention
180 }; 181 };
181 182
182 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ 183 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698