OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/constrained_window_views.h" | 5 #include "chrome/browser/ui/views/constrained_window_views.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/app/chrome_command_ids.h" | 10 #include "chrome/app/chrome_command_ids.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/ui/constrained_window_tab_helper.h" | 12 #include "chrome/browser/ui/constrained_window_tab_helper.h" |
13 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 13 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
14 #include "chrome/browser/ui/toolbar/toolbar_model.h" | 14 #include "chrome/browser/ui/toolbar/toolbar_model.h" |
15 #include "chrome/browser/ui/views/frame/browser_view.h" | 15 #include "chrome/browser/ui/views/frame/browser_view.h" |
16 #include "chrome/browser/ui/views/tab_contents/tab_contents_view_views.h" | 16 #include "chrome/browser/ui/views/tab_contents/tab_contents_view_views.h" |
17 #include "chrome/browser/ui/window_sizer.h" | 17 #include "chrome/browser/ui/window_sizer.h" |
18 #include "chrome/common/chrome_constants.h" | 18 #include "chrome/common/chrome_constants.h" |
19 #include "chrome/common/chrome_notification_types.h" | 19 #include "chrome/common/chrome_notification_types.h" |
20 #include "content/browser/tab_contents/tab_contents.h" | 20 #include "content/browser/tab_contents/tab_contents.h" |
21 #include "content/browser/tab_contents/tab_contents_view.h" | 21 #include "content/browser/tab_contents/tab_contents_view.h" |
22 #include "content/common/notification_service.h" | |
23 #include "grit/chromium_strings.h" | 22 #include "grit/chromium_strings.h" |
24 #include "grit/generated_resources.h" | 23 #include "grit/generated_resources.h" |
25 #include "grit/theme_resources.h" | 24 #include "grit/theme_resources.h" |
26 #include "grit/theme_resources_standard.h" | 25 #include "grit/theme_resources_standard.h" |
27 #include "grit/ui_resources.h" | 26 #include "grit/ui_resources.h" |
28 #include "net/base/net_util.h" | 27 #include "net/base/net_util.h" |
29 #include "ui/base/resource/resource_bundle.h" | 28 #include "ui/base/resource/resource_bundle.h" |
30 #include "ui/gfx/canvas.h" | 29 #include "ui/gfx/canvas.h" |
31 #include "ui/gfx/font.h" | 30 #include "ui/gfx/font.h" |
32 #include "ui/gfx/path.h" | 31 #include "ui/gfx/path.h" |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 } | 657 } |
659 | 658 |
660 void ConstrainedWindowViews::OnNativeConstrainedWindowMouseActivate() { | 659 void ConstrainedWindowViews::OnNativeConstrainedWindowMouseActivate() { |
661 Activate(); | 660 Activate(); |
662 } | 661 } |
663 | 662 |
664 views::internal::NativeWidgetDelegate* | 663 views::internal::NativeWidgetDelegate* |
665 ConstrainedWindowViews::AsNativeWidgetDelegate() { | 664 ConstrainedWindowViews::AsNativeWidgetDelegate() { |
666 return this; | 665 return this; |
667 } | 666 } |
OLD | NEW |