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

Side by Side Diff: chrome/browser/ui/views/info_bubble.cc

Issue 5854003: Remove CrOS hack from ppapi.gyp that made the include directories work. This... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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
« no previous file with comments | « chrome/browser/ui/views/extensions/extension_popup.cc ('k') | ppapi/ppapi.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/views/info_bubble.h" 5 #include "chrome/browser/views/info_bubble.h"
6 6
7 #include "app/keyboard_codes.h" 7 #include "app/keyboard_codes.h"
8 #include "app/slide_animation.h" 8 #include "app/slide_animation.h"
9 #include "chrome/browser/ui/window_sizer.h" 9 #include "chrome/browser/ui/window_sizer.h"
10 #include "chrome/common/notification_service.h" 10 #include "chrome/common/notification_service.h"
11 #include "gfx/canvas_skia.h" 11 #include "gfx/canvas_skia.h"
12 #include "gfx/color_utils.h" 12 #include "gfx/color_utils.h"
13 #include "gfx/path.h" 13 #include "gfx/path.h"
14 #include "third_party/skia/include/core/SkPaint.h" 14 #include "third_party/skia/include/core/SkPaint.h"
15 #include "views/fill_layout.h" 15 #include "views/fill_layout.h"
16 #include "views/widget/root_view.h" 16 #include "views/widget/root_view.h"
17 #include "views/widget/widget.h" 17 #include "views/widget/widget.h"
18 #include "views/window/client_view.h" 18 #include "views/window/client_view.h"
19 #include "views/window/window.h" 19 #include "views/window/window.h"
20 20
21 #if defined(OS_CHROMEOS) 21 #if defined(OS_CHROMEOS)
22 #include "chrome/browser/chromeos/wm_ipc.h" 22 #include "chrome/browser/chromeos/wm_ipc.h"
23 #include "cros/chromeos_wm_ipc_enums.h" 23 #include "third_party/cros/chromeos_wm_ipc_enums.h"
24 #endif 24 #endif
25 25
26 // How long the fade should last for. 26 // How long the fade should last for.
27 static const int kHideFadeDurationMS = 200; 27 static const int kHideFadeDurationMS = 200;
28 28
29 // Background color of the bubble. 29 // Background color of the bubble.
30 #if defined(OS_WIN) 30 #if defined(OS_WIN)
31 const SkColor InfoBubble::kBackgroundColor = 31 const SkColor InfoBubble::kBackgroundColor =
32 color_utils::GetSysSkColor(COLOR_WINDOW); 32 color_utils::GetSysSkColor(COLOR_WINDOW);
33 #else 33 #else
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 animation_->Hide(); 541 animation_->Hide();
542 } 542 }
543 543
544 bool InfoBubble::AcceleratorPressed(const views::Accelerator& accelerator) { 544 bool InfoBubble::AcceleratorPressed(const views::Accelerator& accelerator) {
545 if (!delegate_ || delegate_->CloseOnEscape()) { 545 if (!delegate_ || delegate_->CloseOnEscape()) {
546 DoClose(true); 546 DoClose(true);
547 return true; 547 return true;
548 } 548 }
549 return false; 549 return false;
550 } 550 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/extensions/extension_popup.cc ('k') | ppapi/ppapi.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698