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 "components/mus/public/cpp/window.h" | 11 #include "components/mus/public/cpp/window.h" |
12 #include "components/mus/public/interfaces/window_tree.mojom.h" | 12 #include "components/mus/public/interfaces/window_tree.mojom.h" |
13 #include "mojo/application/public/cpp/application_impl.h" | 13 #include "mojo/shell/public/cpp/application_impl.h" |
14 #include "ui/views/mus/window_manager_connection.h" | 14 #include "ui/views/mus/window_manager_connection.h" |
15 #include "ui/views/mus/window_manager_frame_values.h" | 15 #include "ui/views/mus/window_manager_frame_values.h" |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 views::Widget::InitParams GetWidgetParamsImpl(BrowserView* browser_view) { | 19 views::Widget::InitParams GetWidgetParamsImpl(BrowserView* browser_view) { |
20 views::Widget::InitParams params; | 20 views::Widget::InitParams params; |
21 params.bounds = gfx::Rect(10, 10, 640, 480); | 21 params.bounds = gfx::Rect(10, 10, 640, 480); |
22 params.delegate = browser_view; | 22 params.delegate = browser_view; |
23 return params; | 23 return params; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 } | 68 } |
69 | 69 |
70 int BrowserFrameMus::GetMinimizeButtonOffset() const { | 70 int BrowserFrameMus::GetMinimizeButtonOffset() const { |
71 return 0; | 71 return 0; |
72 } | 72 } |
73 | 73 |
74 void BrowserFrameMus::UpdateClientArea() { | 74 void BrowserFrameMus::UpdateClientArea() { |
75 // BrowserNonClientFrameViewMus::OnBoundsChanged() takes care of updating | 75 // BrowserNonClientFrameViewMus::OnBoundsChanged() takes care of updating |
76 // the insets. | 76 // the insets. |
77 } | 77 } |
OLD | NEW |