OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_mus.h" | 5 #include "chrome/browser/ui/views/frame/browser_frame_mus.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "chrome/browser/ui/views/frame/browser_frame.h" | 9 #include "chrome/browser/ui/views/frame/browser_frame.h" |
10 #include "chrome/browser/ui/views/frame/browser_view.h" | 10 #include "chrome/browser/ui/views/frame/browser_view.h" |
11 #include "chrome/common/extensions/extension_constants.h" | 11 #include "chrome/common/extensions/extension_constants.h" |
12 #include "components/mus/public/cpp/property_type_converters.h" | 12 #include "services/ui/public/cpp/property_type_converters.h" |
13 #include "components/mus/public/cpp/window.h" | 13 #include "services/ui/public/cpp/window.h" |
14 #include "components/mus/public/interfaces/window_tree.mojom.h" | 14 #include "services/ui/public/interfaces/window_tree.mojom.h" |
15 #include "ui/views/mus/window_manager_connection.h" | 15 #include "ui/views/mus/window_manager_connection.h" |
16 #include "ui/views/mus/window_manager_frame_values.h" | 16 #include "ui/views/mus/window_manager_frame_values.h" |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 views::Widget::InitParams GetWidgetParamsImpl(BrowserView* browser_view) { | 20 views::Widget::InitParams GetWidgetParamsImpl(BrowserView* browser_view) { |
21 views::Widget::InitParams params; | 21 views::Widget::InitParams params; |
22 params.bounds = gfx::Rect(10, 10, 640, 480); | 22 params.bounds = gfx::Rect(10, 10, 640, 480); |
23 params.delegate = browser_view; | 23 params.delegate = browser_view; |
24 return params; | 24 return params; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 } | 72 } |
73 | 73 |
74 int BrowserFrameMus::GetMinimizeButtonOffset() const { | 74 int BrowserFrameMus::GetMinimizeButtonOffset() const { |
75 return 0; | 75 return 0; |
76 } | 76 } |
77 | 77 |
78 void BrowserFrameMus::UpdateClientArea() { | 78 void BrowserFrameMus::UpdateClientArea() { |
79 // BrowserNonClientFrameViewMus::OnBoundsChanged() takes care of updating | 79 // BrowserNonClientFrameViewMus::OnBoundsChanged() takes care of updating |
80 // the insets. | 80 // the insets. |
81 } | 81 } |
OLD | NEW |