OLD | NEW |
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/wm/window_state.h" | 7 #include "ash/wm/window_state.h" |
8 #include "ash/wm/window_state_delegate.h" | 8 #include "ash/wm/window_state_delegate.h" |
9 #include "ash/wm/window_util.h" | 9 #include "ash/wm/window_util.h" |
10 #include "chrome/browser/ui/browser_commands.h" | 10 #include "chrome/browser/ui/browser_commands.h" |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 return false; | 207 return false; |
208 } | 208 } |
209 | 209 |
210 int BrowserFrameAsh::GetMinimizeButtonOffset() const { | 210 int BrowserFrameAsh::GetMinimizeButtonOffset() const { |
211 return 0; | 211 return 0; |
212 } | 212 } |
213 | 213 |
214 void BrowserFrameAsh::TabStripDisplayModeChanged() { | 214 void BrowserFrameAsh::TabStripDisplayModeChanged() { |
215 } | 215 } |
216 | 216 |
| 217 BrowserFrameAsh::~BrowserFrameAsh() { |
| 218 } |
| 219 |
217 /////////////////////////////////////////////////////////////////////////////// | 220 /////////////////////////////////////////////////////////////////////////////// |
218 // BrowserFrameAsh, private: | 221 // BrowserFrameAsh, private: |
219 | 222 |
220 BrowserFrameAsh::~BrowserFrameAsh() { | |
221 } | |
222 | |
223 void BrowserFrameAsh::SetWindowAutoManaged() { | 223 void BrowserFrameAsh::SetWindowAutoManaged() { |
224 if (browser_view_->browser()->type() != Browser::TYPE_POPUP || | 224 if (browser_view_->browser()->type() != Browser::TYPE_POPUP || |
225 browser_view_->browser()->is_app()) { | 225 browser_view_->browser()->is_app()) { |
226 ash::wm::GetWindowState(GetNativeWindow())-> | 226 ash::wm::GetWindowState(GetNativeWindow())-> |
227 set_window_position_managed(true); | 227 set_window_position_managed(true); |
228 } | 228 } |
229 } | 229 } |
OLD | NEW |