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

Side by Side Diff: chrome/browser/ui/views/frame/browser_frame_ash.cc

Issue 2833363002: Add GetCaptionButtonHeightInDIPs() method (Closed)
Patch Set: Addressed review comments Created 3 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "chrome/browser/ui/views/frame/browser_frame_ash.h" 5 #include "chrome/browser/ui/views/frame/browser_frame_ash.h"
6 6
7 #include "ash/ash_switches.h" 7 #include "ash/ash_switches.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "ash/wm/window_properties.h" 9 #include "ash/wm/window_properties.h"
10 #include "ash/wm/window_state.h" 10 #include "ash/wm/window_state.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 } 148 }
149 149
150 bool BrowserFrameAsh::UsesNativeSystemMenu() const { 150 bool BrowserFrameAsh::UsesNativeSystemMenu() const {
151 return false; 151 return false;
152 } 152 }
153 153
154 int BrowserFrameAsh::GetMinimizeButtonOffset() const { 154 int BrowserFrameAsh::GetMinimizeButtonOffset() const {
155 return 0; 155 return 0;
156 } 156 }
157 157
158 int BrowserFrameAsh::GetCaptionButtonHeight() const {
159 NOTIMPLEMENTED();
160 return 0;
161 }
162
158 BrowserFrameAsh::~BrowserFrameAsh() { 163 BrowserFrameAsh::~BrowserFrameAsh() {
159 } 164 }
160 165
161 /////////////////////////////////////////////////////////////////////////////// 166 ///////////////////////////////////////////////////////////////////////////////
162 // BrowserFrameAsh, private: 167 // BrowserFrameAsh, private:
163 168
164 void BrowserFrameAsh::SetWindowAutoManaged() { 169 void BrowserFrameAsh::SetWindowAutoManaged() {
165 // For browser window in Chrome OS, we should only enable the auto window 170 // For browser window in Chrome OS, we should only enable the auto window
166 // management logic for tabbed browser. 171 // management logic for tabbed browser.
167 if (!browser_view_->browser()->is_type_popup()) { 172 if (!browser_view_->browser()->is_type_popup()) {
168 ash::wm::GetWindowState(GetNativeWindow()) 173 ash::wm::GetWindowState(GetNativeWindow())
169 ->set_window_position_managed(true); 174 ->set_window_position_managed(true);
170 } 175 }
171 } 176 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698