OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "base/mac/mac_util.h" | 5 #include "base/mac/foundation_util.h" |
6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
7 #include "base/strings/sys_string_conversions.h" | 7 #include "base/strings/sys_string_conversions.h" |
8 #import "chrome/browser/ui/cocoa/info_bubble_view.h" | 8 #import "chrome/browser/ui/cocoa/info_bubble_view.h" |
9 #import "chrome/browser/ui/cocoa/info_bubble_window.h" | 9 #import "chrome/browser/ui/cocoa/info_bubble_window.h" |
10 #import "chrome/browser/ui/cocoa/validation_message_bubble_controller.h" | 10 #import "chrome/browser/ui/cocoa/validation_message_bubble_controller.h" |
11 #include "chrome/browser/ui/validation_message_bubble.h" | 11 #include "chrome/browser/ui/validation_message_bubble.h" |
12 #include "content/public/browser/render_widget_host.h" | 12 #include "content/public/browser/render_widget_host.h" |
13 #include "content/public/browser/render_widget_host_view.h" | 13 #include "content/public/browser/render_widget_host_view.h" |
14 #include "grit/theme_resources.h" | 14 #include "grit/theme_resources.h" |
15 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw
eaker.h" | 15 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw
eaker.h" |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 scoped_ptr<ValidationMessageBubble> ValidationMessageBubble::CreateAndShow( | 184 scoped_ptr<ValidationMessageBubble> ValidationMessageBubble::CreateAndShow( |
185 content::RenderWidgetHost* widget_host, | 185 content::RenderWidgetHost* widget_host, |
186 const gfx::Rect& anchor_in_root_view, | 186 const gfx::Rect& anchor_in_root_view, |
187 const base::string16& main_text, | 187 const base::string16& main_text, |
188 const base::string16& sub_text) { | 188 const base::string16& sub_text) { |
189 return scoped_ptr<ValidationMessageBubble>(new ValidationMessageBubbleCocoa( | 189 return scoped_ptr<ValidationMessageBubble>(new ValidationMessageBubbleCocoa( |
190 widget_host, anchor_in_root_view, main_text, sub_text)).Pass(); | 190 widget_host, anchor_in_root_view, main_text, sub_text)).Pass(); |
191 } | 191 } |
192 | 192 |
193 } | 193 } |
OLD | NEW |