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

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

Issue 25373009: Translate: New Bubble UX (for the view toolkit) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bug fix: view id on tests Created 7 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/browser_window.h ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 virtual bool IsBookmarkBarVisible() const OVERRIDE; 93 virtual bool IsBookmarkBarVisible() const OVERRIDE;
94 virtual bool IsBookmarkBarAnimating() const OVERRIDE; 94 virtual bool IsBookmarkBarAnimating() const OVERRIDE;
95 virtual bool IsTabStripEditable() const OVERRIDE; 95 virtual bool IsTabStripEditable() const OVERRIDE;
96 virtual bool IsToolbarVisible() const OVERRIDE; 96 virtual bool IsToolbarVisible() const OVERRIDE;
97 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; 97 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE;
98 virtual void ConfirmAddSearchProvider(TemplateURL* template_url, 98 virtual void ConfirmAddSearchProvider(TemplateURL* template_url,
99 Profile* profile) OVERRIDE; 99 Profile* profile) OVERRIDE;
100 virtual void ShowUpdateChromeDialog() OVERRIDE; 100 virtual void ShowUpdateChromeDialog() OVERRIDE;
101 virtual void ShowBookmarkBubble(const GURL& url, 101 virtual void ShowBookmarkBubble(const GURL& url,
102 bool already_bookmarked) OVERRIDE; 102 bool already_bookmarked) OVERRIDE;
103 virtual void ShowTranslateBubble(
104 content::WebContents* contents,
105 TranslateBubbleModel::ViewState view_state) OVERRIDE;
103 #if defined(ENABLE_ONE_CLICK_SIGNIN) 106 #if defined(ENABLE_ONE_CLICK_SIGNIN)
104 virtual void ShowOneClickSigninBubble( 107 virtual void ShowOneClickSigninBubble(
105 OneClickSigninBubbleType type, 108 OneClickSigninBubbleType type,
106 const string16& email, 109 const string16& email,
107 const string16& error_message, 110 const string16& error_message,
108 const StartSyncCallback& start_sync_callback) OVERRIDE; 111 const StartSyncCallback& start_sync_callback) OVERRIDE;
109 #endif 112 #endif
110 virtual bool IsDownloadShelfVisible() const OVERRIDE; 113 virtual bool IsDownloadShelfVisible() const OVERRIDE;
111 virtual DownloadShelf* GetDownloadShelf() OVERRIDE; 114 virtual DownloadShelf* GetDownloadShelf() OVERRIDE;
112 virtual void ConfirmBrowserCloseWithPendingDownloads( 115 virtual void ConfirmBrowserCloseWithPendingDownloads(
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 NSWindow* window() const; // Accessor for the (current) |NSWindow|. 172 NSWindow* window() const; // Accessor for the (current) |NSWindow|.
170 173
171 Browser* browser_; // weak, owned by controller 174 Browser* browser_; // weak, owned by controller
172 BrowserWindowController* controller_; // weak, owns us 175 BrowserWindowController* controller_; // weak, owns us
173 base::scoped_nsobject<NSString> pending_window_title_; 176 base::scoped_nsobject<NSString> pending_window_title_;
174 ui::WindowShowState initial_show_state_; 177 ui::WindowShowState initial_show_state_;
175 NSInteger attention_request_id_; // identifier from requestUserAttention 178 NSInteger attention_request_id_; // identifier from requestUserAttention
176 }; 179 };
177 180
178 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ 181 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_window.h ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698