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/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "chrome/app/chrome_command_ids.h" | 11 #include "chrome/app/chrome_command_ids.h" |
12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/ui/panels/panel.h" | 13 #include "chrome/browser/ui/panels/panel.h" |
14 #include "chrome/browser/ui/panels/panel_bounds_animation.h" | 14 #include "chrome/browser/ui/panels/panel_bounds_animation.h" |
15 #include "chrome/browser/ui/panels/panel_manager.h" | 15 #include "chrome/browser/ui/panels/panel_manager.h" |
16 #include "chrome/browser/ui/panels/stacked_panel_collection.h" | 16 #include "chrome/browser/ui/panels/stacked_panel_collection.h" |
17 #include "chrome/browser/ui/views/panels/panel_frame_view.h" | 17 #include "chrome/browser/ui/views/panels/panel_frame_view.h" |
18 #include "content/public/browser/render_view_host.h" | 18 #include "content/public/browser/render_view_host.h" |
19 #include "content/public/browser/render_widget_host_view.h" | 19 #include "content/public/browser/render_widget_host_view.h" |
20 #include "content/public/browser/web_contents.h" | 20 #include "content/public/browser/web_contents.h" |
(...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1114 DCHECK(thickness_for_mouse_resizing > 0); | 1114 DCHECK(thickness_for_mouse_resizing > 0); |
1115 SkRegion* region = new SkRegion; | 1115 SkRegion* region = new SkRegion; |
1116 region->op(0, 0, thickness_for_mouse_resizing, height, SkRegion::kUnion_Op); | 1116 region->op(0, 0, thickness_for_mouse_resizing, height, SkRegion::kUnion_Op); |
1117 region->op(width - thickness_for_mouse_resizing, 0, width, height, | 1117 region->op(width - thickness_for_mouse_resizing, 0, width, height, |
1118 SkRegion::kUnion_Op); | 1118 SkRegion::kUnion_Op); |
1119 region->op(0, height - thickness_for_mouse_resizing, width, height, | 1119 region->op(0, height - thickness_for_mouse_resizing, width, height, |
1120 SkRegion::kUnion_Op); | 1120 SkRegion::kUnion_Op); |
1121 web_contents->GetRenderViewHost()->GetView()->SetClickthroughRegion(region); | 1121 web_contents->GetRenderViewHost()->GetView()->SetClickthroughRegion(region); |
1122 #endif | 1122 #endif |
1123 } | 1123 } |
OLD | NEW |