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/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 Loading... | |
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::GetMinimizeButtonHeight() const { | |
159 return 0; | |
Peter Kasting
2017/04/24 23:00:17
Same question
emx
2017/04/25 11:57:40
NOTIMPLEMENTED()
| |
160 } | |
161 | |
158 BrowserFrameAsh::~BrowserFrameAsh() { | 162 BrowserFrameAsh::~BrowserFrameAsh() { |
159 } | 163 } |
160 | 164 |
161 /////////////////////////////////////////////////////////////////////////////// | 165 /////////////////////////////////////////////////////////////////////////////// |
162 // BrowserFrameAsh, private: | 166 // BrowserFrameAsh, private: |
163 | 167 |
164 void BrowserFrameAsh::SetWindowAutoManaged() { | 168 void BrowserFrameAsh::SetWindowAutoManaged() { |
165 // For browser window in Chrome OS, we should only enable the auto window | 169 // For browser window in Chrome OS, we should only enable the auto window |
166 // management logic for tabbed browser. | 170 // management logic for tabbed browser. |
167 if (!browser_view_->browser()->is_type_popup()) { | 171 if (!browser_view_->browser()->is_type_popup()) { |
168 ash::wm::GetWindowState(GetNativeWindow()) | 172 ash::wm::GetWindowState(GetNativeWindow()) |
169 ->set_window_position_managed(true); | 173 ->set_window_position_managed(true); |
170 } | 174 } |
171 } | 175 } |
OLD | NEW |