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" | |
18 #include "chrome/common/chrome_constants.h" | 17 #include "chrome/common/chrome_constants.h" |
19 #include "chrome/common/chrome_notification_types.h" | 18 #include "chrome/common/chrome_notification_types.h" |
20 #include "content/browser/tab_contents/tab_contents.h" | 19 #include "content/browser/tab_contents/tab_contents.h" |
21 #include "content/browser/tab_contents/tab_contents_view.h" | 20 #include "content/browser/tab_contents/tab_contents_view.h" |
22 #include "grit/chromium_strings.h" | 21 #include "grit/chromium_strings.h" |
23 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
24 #include "grit/theme_resources.h" | 23 #include "grit/theme_resources.h" |
25 #include "grit/theme_resources_standard.h" | 24 #include "grit/theme_resources_standard.h" |
26 #include "grit/ui_resources.h" | 25 #include "grit/ui_resources.h" |
27 #include "net/base/net_util.h" | 26 #include "net/base/net_util.h" |
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 } | 658 } |
660 | 659 |
661 void ConstrainedWindowViews::OnNativeConstrainedWindowMouseActivate() { | 660 void ConstrainedWindowViews::OnNativeConstrainedWindowMouseActivate() { |
662 Activate(); | 661 Activate(); |
663 } | 662 } |
664 | 663 |
665 views::internal::NativeWidgetDelegate* | 664 views::internal::NativeWidgetDelegate* |
666 ConstrainedWindowViews::AsNativeWidgetDelegate() { | 665 ConstrainedWindowViews::AsNativeWidgetDelegate() { |
667 return this; | 666 return this; |
668 } | 667 } |
OLD | NEW |