Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(469)

Side by Side Diff: chrome/browser/ui/views/panels/panel_view.cc

Issue 12321107: Move shell integration code from chrome/browser to apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/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/views/panels/panel_frame_view.h" 16 #include "chrome/browser/ui/views/panels/panel_frame_view.h"
17 #include "content/public/browser/render_view_host.h" 17 #include "content/public/browser/render_view_host.h"
18 #include "content/public/browser/render_widget_host_view.h" 18 #include "content/public/browser/render_widget_host_view.h"
19 #include "content/public/browser/web_contents.h" 19 #include "content/public/browser/web_contents.h"
20 #include "content/public/browser/web_contents_view.h" 20 #include "content/public/browser/web_contents_view.h"
21 #include "ui/gfx/image/image.h" 21 #include "ui/gfx/image/image.h"
22 #include "ui/gfx/path.h" 22 #include "ui/gfx/path.h"
23 #include "ui/gfx/screen.h" 23 #include "ui/gfx/screen.h"
24 #include "ui/views/controls/button/image_button.h" 24 #include "ui/views/controls/button/image_button.h"
25 #include "ui/views/controls/webview/webview.h" 25 #include "ui/views/controls/webview/webview.h"
26 #include "ui/views/widget/widget.h" 26 #include "ui/views/widget/widget.h"
27 27
28 #if defined(OS_WIN) 28 #if defined(OS_WIN)
29 #include "apps/shell_integration.h"
29 #include "base/win/windows_version.h" 30 #include "base/win/windows_version.h"
30 #include "chrome/browser/shell_integration.h"
31 #include "chrome/browser/ui/views/hwnd_util.h" 31 #include "chrome/browser/ui/views/hwnd_util.h"
32 #include "chrome/browser/ui/views/panels/taskbar_window_thumbnailer_win.h" 32 #include "chrome/browser/ui/views/panels/taskbar_window_thumbnailer_win.h"
33 #include "ui/base/win/shell.h" 33 #include "ui/base/win/shell.h"
34 #include "ui/gfx/icon_util.h" 34 #include "ui/gfx/icon_util.h"
35 #endif 35 #endif
36 36
37 namespace { 37 namespace {
38 38
39 // Supported accelerators. 39 // Supported accelerators.
40 // Note: We can't use the acclerator table defined in chrome/browser/ui/views 40 // Note: We can't use the acclerator table defined in chrome/browser/ui/views
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 DCHECK(thickness_for_mouse_resizing > 0); 955 DCHECK(thickness_for_mouse_resizing > 0);
956 SkRegion* region = new SkRegion; 956 SkRegion* region = new SkRegion;
957 region->op(0, 0, thickness_for_mouse_resizing, height, SkRegion::kUnion_Op); 957 region->op(0, 0, thickness_for_mouse_resizing, height, SkRegion::kUnion_Op);
958 region->op(width - thickness_for_mouse_resizing, 0, width, height, 958 region->op(width - thickness_for_mouse_resizing, 0, width, height,
959 SkRegion::kUnion_Op); 959 SkRegion::kUnion_Op);
960 region->op(0, height - thickness_for_mouse_resizing, width, height, 960 region->op(0, height - thickness_for_mouse_resizing, width, height,
961 SkRegion::kUnion_Op); 961 SkRegion::kUnion_Op);
962 web_contents->GetRenderViewHost()->GetView()->SetClickthroughRegion(region); 962 web_contents->GetRenderViewHost()->GetView()->SetClickthroughRegion(region);
963 #endif 963 #endif
964 } 964 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698