| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/panels/panel_view.h" | 5 #include "chrome/browser/ui/views/panels/panel_view.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 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/panels/panel.h" | 12 #include "chrome/browser/ui/panels/panel.h" |
| 13 #include "chrome/browser/ui/panels/panel_bounds_animation.h" | 13 #include "chrome/browser/ui/panels/panel_bounds_animation.h" |
| 14 #include "chrome/browser/ui/panels/panel_manager.h" | 14 #include "chrome/browser/ui/panels/panel_manager.h" |
| 15 #include "chrome/browser/ui/views/panels/panel_frame_view.h" | 15 #include "chrome/browser/ui/views/panels/panel_frame_view.h" |
| 16 #include "content/public/browser/render_view_host.h" | 16 #include "content/public/browser/render_view_host.h" |
| 17 #include "content/public/browser/render_widget_host_view.h" | 17 #include "content/public/browser/render_widget_host_view.h" |
| 18 #include "content/public/browser/web_contents.h" |
| 18 #include "content/public/browser/web_contents_view.h" | 19 #include "content/public/browser/web_contents_view.h" |
| 19 #include "ui/gfx/image/image.h" | 20 #include "ui/gfx/image/image.h" |
| 20 #include "ui/gfx/path.h" | 21 #include "ui/gfx/path.h" |
| 21 #include "ui/gfx/screen.h" | 22 #include "ui/gfx/screen.h" |
| 22 #include "ui/views/controls/button/image_button.h" | 23 #include "ui/views/controls/button/image_button.h" |
| 23 #include "ui/views/controls/webview/webview.h" | 24 #include "ui/views/controls/webview/webview.h" |
| 24 #include "ui/views/widget/widget.h" | 25 #include "ui/views/widget/widget.h" |
| 25 | 26 |
| 26 #if defined(OS_WIN) && !defined(USE_ASH) && !defined(USE_AURA) | 27 #if defined(OS_WIN) && !defined(USE_ASH) && !defined(USE_AURA) |
| 27 #include "base/win/windows_version.h" | 28 #include "base/win/windows_version.h" |
| (...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 913 DCHECK(thickness_for_mouse_resizing > 0); | 914 DCHECK(thickness_for_mouse_resizing > 0); |
| 914 SkRegion* region = new SkRegion; | 915 SkRegion* region = new SkRegion; |
| 915 region->op(0, 0, thickness_for_mouse_resizing, height, SkRegion::kUnion_Op); | 916 region->op(0, 0, thickness_for_mouse_resizing, height, SkRegion::kUnion_Op); |
| 916 region->op(width - thickness_for_mouse_resizing, 0, width, height, | 917 region->op(width - thickness_for_mouse_resizing, 0, width, height, |
| 917 SkRegion::kUnion_Op); | 918 SkRegion::kUnion_Op); |
| 918 region->op(0, height - thickness_for_mouse_resizing, width, height, | 919 region->op(0, height - thickness_for_mouse_resizing, width, height, |
| 919 SkRegion::kUnion_Op); | 920 SkRegion::kUnion_Op); |
| 920 web_contents->GetRenderViewHost()->GetView()->SetClickthroughRegion(region); | 921 web_contents->GetRenderViewHost()->GetView()->SetClickthroughRegion(region); |
| 921 #endif | 922 #endif |
| 922 } | 923 } |
| OLD | NEW |