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 "mandoline/ui/desktop_ui/browser_window.h" | 5 #include "mandoline/ui/desktop_ui/browser_window.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include <utility> | 9 #include <utility> |
8 | 10 |
9 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/macros.h" |
10 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
11 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
12 #include "base/time/time.h" | 15 #include "base/time/time.h" |
13 #include "base/trace_event/trace_event.h" | 16 #include "base/trace_event/trace_event.h" |
14 #include "components/mus/public/cpp/event_matcher.h" | 17 #include "components/mus/public/cpp/event_matcher.h" |
15 #include "components/mus/public/cpp/scoped_window_ptr.h" | 18 #include "components/mus/public/cpp/scoped_window_ptr.h" |
16 #include "components/mus/public/cpp/window_tree_host_factory.h" | 19 #include "components/mus/public/cpp/window_tree_host_factory.h" |
17 #include "mandoline/ui/desktop_ui/browser_commands.h" | 20 #include "mandoline/ui/desktop_ui/browser_commands.h" |
18 #include "mandoline/ui/desktop_ui/browser_manager.h" | 21 #include "mandoline/ui/desktop_ui/browser_manager.h" |
19 #include "mandoline/ui/desktop_ui/find_bar_view.h" | 22 #include "mandoline/ui/desktop_ui/find_bar_view.h" |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 content_bounds.set_width(DIPSToPixels(progress_bar_bounds.width())); | 451 content_bounds.set_width(DIPSToPixels(progress_bar_bounds.width())); |
449 content_bounds.set_height(host->bounds().height() - content_bounds.y() - | 452 content_bounds.set_height(host->bounds().height() - content_bounds.y() - |
450 DIPSToPixels(10)); | 453 DIPSToPixels(10)); |
451 content_->SetBounds(content_bounds); | 454 content_->SetBounds(content_bounds); |
452 | 455 |
453 // The omnibox view bounds are in physical pixels. | 456 // The omnibox view bounds are in physical pixels. |
454 omnibox_view_->SetBounds(bounds_in_physical_pixels); | 457 omnibox_view_->SetBounds(bounds_in_physical_pixels); |
455 } | 458 } |
456 | 459 |
457 } // namespace mandoline | 460 } // namespace mandoline |
OLD | NEW |