OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/notifications/balloon_view_host.h" | 5 #include "chrome/browser/ui/views/notifications/balloon_view_host.h" |
6 | 6 |
7 #include "chrome/browser/notifications/balloon.h" | 7 #include "chrome/browser/notifications/balloon.h" |
8 #include "content/browser/renderer_host/render_view_host.h" | 8 #include "content/browser/renderer_host/render_view_host.h" |
9 #include "content/browser/renderer_host/render_widget_host_view.h" | 9 #include "content/browser/renderer_host/render_widget_host_view.h" |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
11 #include "chrome/browser/renderer_host/render_widget_host_view_win.h" | 11 #include "chrome/browser/renderer_host/render_widget_host_view_win.h" |
12 #endif | 12 #endif |
13 #if defined(TOOLKIT_USES_GTK) | 13 #if defined(TOOLKIT_USES_GTK) |
14 #if defined(TOUCH_UI) | 14 #if defined(TOUCH_UI) |
15 #include "chrome/browser/renderer_host/render_widget_host_view_views.h" | 15 #include "chrome/browser/renderer_host/render_widget_host_view_views.h" |
16 #else | 16 #else |
17 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" | 17 #include "content/browser/renderer_host/render_widget_host_view_gtk.h" |
18 #endif | 18 #endif |
19 #endif | 19 #endif |
20 #include "views/widget/widget.h" | 20 #include "views/widget/widget.h" |
21 | 21 |
22 class BalloonViewHostView : public views::NativeViewHost { | 22 class BalloonViewHostView : public views::NativeViewHost { |
23 public: | 23 public: |
24 explicit BalloonViewHostView(BalloonViewHost* host) | 24 explicit BalloonViewHostView(BalloonViewHost* host) |
25 : host_(host), | 25 : host_(host), |
26 initialized_(false) { | 26 initialized_(false) { |
27 } | 27 } |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 native_host_->Attach(view_gtk->native_view()); | 85 native_host_->Attach(view_gtk->native_view()); |
86 #endif | 86 #endif |
87 #else | 87 #else |
88 NOTIMPLEMENTED(); | 88 NOTIMPLEMENTED(); |
89 #endif | 89 #endif |
90 } | 90 } |
91 | 91 |
92 RenderWidgetHostView* BalloonViewHost::render_widget_host_view() const { | 92 RenderWidgetHostView* BalloonViewHost::render_widget_host_view() const { |
93 return render_widget_host_view_; | 93 return render_widget_host_view_; |
94 } | 94 } |
OLD | NEW |