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

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

Issue 1622833002: Fix opaque frame incognito icon and tabstrip positioning. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/opaque_browser_frame_view.cc » ('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_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/ui/view_ids.h" 10 #include "chrome/browser/ui/view_ids.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 bool ShouldShowAvatar() const override; 79 bool ShouldShowAvatar() const override;
80 bool IsRegularOrGuestSession() const override; 80 bool IsRegularOrGuestSession() const override;
81 gfx::ImageSkia GetOTRAvatarIcon() const override; 81 gfx::ImageSkia GetOTRAvatarIcon() const override;
82 bool IsMaximized() const override; 82 bool IsMaximized() const override;
83 bool IsMinimized() const override; 83 bool IsMinimized() const override;
84 bool IsFullscreen() const override; 84 bool IsFullscreen() const override;
85 bool IsTabStripVisible() const override; 85 bool IsTabStripVisible() const override;
86 int GetTabStripHeight() const override; 86 int GetTabStripHeight() const override;
87 bool IsToolbarVisible() const override; 87 bool IsToolbarVisible() const override;
88 gfx::Size GetTabstripPreferredSize() const override; 88 gfx::Size GetTabstripPreferredSize() const override;
89 int GetToolbarLeadingCornerClientWidth() const override;
89 90
90 protected: 91 protected:
91 views::ImageButton* minimize_button() const { return minimize_button_; } 92 views::ImageButton* minimize_button() const { return minimize_button_; }
92 views::ImageButton* maximize_button() const { return maximize_button_; } 93 views::ImageButton* maximize_button() const { return maximize_button_; }
93 views::ImageButton* restore_button() const { return restore_button_; } 94 views::ImageButton* restore_button() const { return restore_button_; }
94 views::ImageButton* close_button() const { return close_button_; } 95 views::ImageButton* close_button() const { return close_button_; }
95 96
96 // views::View: 97 // views::View:
97 void OnPaint(gfx::Canvas* canvas) override; 98 void OnPaint(gfx::Canvas* canvas) override;
98 99
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // Background painter for the window frame. 168 // Background painter for the window frame.
168 scoped_ptr<views::FrameBackground> frame_background_; 169 scoped_ptr<views::FrameBackground> frame_background_;
169 170
170 // Observer that handles platform dependent configuration. 171 // Observer that handles platform dependent configuration.
171 scoped_ptr<OpaqueBrowserFrameViewPlatformSpecific> platform_observer_; 172 scoped_ptr<OpaqueBrowserFrameViewPlatformSpecific> platform_observer_;
172 173
173 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); 174 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView);
174 }; 175 };
175 176
176 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 177 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698