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

Side by Side Diff: chrome/browser/ui/cocoa/status_bubble_mac.mm

Issue 107933006: Get rid of ui_cocoa_third_party_toolkits target from ui.gyp (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mark review Created 7 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
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/cocoa/status_bubble_mac.h" 5 #include "chrome/browser/ui/cocoa/status_bubble_mac.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/mac/mac_util.h" 11 #include "base/mac/mac_util.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "base/strings/sys_string_conversions.h" 14 #include "base/strings/sys_string_conversions.h"
15 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
16 #import "chrome/browser/ui/cocoa/bubble_view.h" 16 #import "chrome/browser/ui/cocoa/bubble_view.h"
17 #include "net/base/net_util.h" 17 #include "net/base/net_util.h"
18 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" 18 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSAnimation+Duration.h "
19 #import "third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.h" 19 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSBezierPath+RoundRect .h"
20 #import "third_party/GTM/AppKit/GTMNSColor+Luminance.h" 20 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSColor+Luminance.h"
21 #include "ui/base/cocoa/window_size_constants.h" 21 #include "ui/base/cocoa/window_size_constants.h"
22 #include "ui/gfx/font_list.h" 22 #include "ui/gfx/font_list.h"
23 #include "ui/gfx/point.h" 23 #include "ui/gfx/point.h"
24 #include "ui/gfx/text_elider.h" 24 #include "ui/gfx/text_elider.h"
25 25
26 namespace { 26 namespace {
27 27
28 const int kWindowHeight = 18; 28 const int kWindowHeight = 18;
29 29
30 // The width of the bubble in relation to the width of the parent window. 30 // The width of the bubble in relation to the width of the parent window.
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 } 742 }
743 743
744 // Round the top corners when the bubble is below the parent window. 744 // Round the top corners when the bubble is below the parent window.
745 if (NSMinY(window_frame) < NSMinY(parent_frame)) { 745 if (NSMinY(window_frame) < NSMinY(parent_frame)) {
746 corner_flags |= kRoundedTopLeftCorner | kRoundedTopRightCorner; 746 corner_flags |= kRoundedTopLeftCorner | kRoundedTopRightCorner;
747 } 747 }
748 } 748 }
749 749
750 return corner_flags; 750 return corner_flags;
751 } 751 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/speech_recognition_window_controller.mm ('k') | chrome/browser/ui/cocoa/tab_contents/sad_tab_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698