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

Side by Side Diff: chrome/browser/ui/views/frame/browser_view.h

Issue 1972033002: Simplify some old avatar menu button code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reinstate ash browser test fix Created 4 years, 7 months 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_VIEWS_FRAME_BROWSER_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 bool IsOffTheRecord() const; 193 bool IsOffTheRecord() const;
194 194
195 // Returns true if the profile associated with this Browser window is 195 // Returns true if the profile associated with this Browser window is
196 // a guest session. 196 // a guest session.
197 bool IsGuestSession() const; 197 bool IsGuestSession() const;
198 198
199 // Returns true if the profile associated with this Browser window is 199 // Returns true if the profile associated with this Browser window is
200 // not off the record or a guest session. 200 // not off the record or a guest session.
201 bool IsRegularOrGuestSession() const; 201 bool IsRegularOrGuestSession() const;
202 202
203 // Returns true if the non-client view should render an avatar icon.
204 bool ShouldShowAvatar() const;
205
206 // Provides the containing frame with the accelerator for the specified 203 // Provides the containing frame with the accelerator for the specified
207 // command id. This can be used to provide menu item shortcut hints etc. 204 // command id. This can be used to provide menu item shortcut hints etc.
208 // Returns true if an accelerator was found for the specified |cmd_id|, false 205 // Returns true if an accelerator was found for the specified |cmd_id|, false
209 // otherwise. 206 // otherwise.
210 bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator) const; 207 bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator) const;
211 208
212 // Returns true if the specificed |accelerator| is registered with this view. 209 // Returns true if the specificed |accelerator| is registered with this view.
213 bool IsAcceleratorRegistered(const ui::Accelerator& accelerator); 210 bool IsAcceleratorRegistered(const ui::Accelerator& accelerator);
214 211
215 // Returns the active WebContents. Used by our NonClientView's 212 // Returns the active WebContents. Used by our NonClientView's
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 // The class that registers for keyboard shortcuts for extension commands. 691 // The class that registers for keyboard shortcuts for extension commands.
695 std::unique_ptr<ExtensionKeybindingRegistryViews> 692 std::unique_ptr<ExtensionKeybindingRegistryViews>
696 extension_keybinding_registry_; 693 extension_keybinding_registry_;
697 694
698 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; 695 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_;
699 696
700 DISALLOW_COPY_AND_ASSIGN(BrowserView); 697 DISALLOW_COPY_AND_ASSIGN(BrowserView);
701 }; 698 };
702 699
703 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ 700 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698