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

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

Issue 19115003: Make the maximize button more easily hittable when there is a huge amount of tabs present (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
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 <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 // Retrieves the icon to use in the frame to indicate an OTR window. 228 // Retrieves the icon to use in the frame to indicate an OTR window.
229 gfx::ImageSkia GetOTRAvatarIcon() const; 229 gfx::ImageSkia GetOTRAvatarIcon() const;
230 230
231 // Returns true if the Browser object associated with this BrowserView is a 231 // Returns true if the Browser object associated with this BrowserView is a
232 // tabbed-type window (i.e. a browser window, not an app or popup). 232 // tabbed-type window (i.e. a browser window, not an app or popup).
233 bool IsBrowserTypeNormal() const { 233 bool IsBrowserTypeNormal() const {
234 return browser_->is_type_tabbed(); 234 return browser_->is_type_tabbed();
235 } 235 }
236 236
237 // Returns true if the specified point(BrowserView coordinates) is in
238 // in the window caption area of the browser window.
239 bool IsPositionInWindowCaption(const gfx::Point& point);
240
241 // See ImmersiveModeController for description. 237 // See ImmersiveModeController for description.
242 ImmersiveModeController* immersive_mode_controller() const { 238 ImmersiveModeController* immersive_mode_controller() const {
243 return immersive_mode_controller_.get(); 239 return immersive_mode_controller_.get();
244 } 240 }
245 241
246 // Restores the focused view. This is also used to set the initial focus 242 // Restores the focused view. This is also used to set the initial focus
247 // when a new browser window is created. 243 // when a new browser window is created.
248 void RestoreFocus(); 244 void RestoreFocus();
249 245
250 void SetWindowSwitcherButton(views::Button* button); 246 void SetWindowSwitcherButton(views::Button* button);
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 gfx::ScopedSysColorChangeListener color_change_listener_; 789 gfx::ScopedSysColorChangeListener color_change_listener_;
794 790
795 scoped_ptr<InstantOverlayControllerViews> overlay_controller_; 791 scoped_ptr<InstantOverlayControllerViews> overlay_controller_;
796 792
797 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; 793 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_;
798 794
799 DISALLOW_COPY_AND_ASSIGN(BrowserView); 795 DISALLOW_COPY_AND_ASSIGN(BrowserView);
800 }; 796 };
801 797
802 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ 798 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698