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/content_browser_client.h" | |
9 #include "content/browser/renderer_host/render_view_host.h" | 8 #include "content/browser/renderer_host/render_view_host.h" |
10 #include "content/browser/renderer_host/render_widget_host_view.h" | 9 #include "content/browser/renderer_host/render_widget_host_view.h" |
11 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
12 #include "content/browser/renderer_host/render_widget_host_view_win.h" | 11 #include "content/browser/renderer_host/render_widget_host_view_win.h" |
13 #endif | 12 #endif |
14 #if defined(TOOLKIT_USES_GTK) | 13 #if defined(TOOLKIT_USES_GTK) |
15 #if defined(TOUCH_UI) || defined(USE_AURA) | 14 #if defined(TOUCH_UI) || defined(USE_AURA) |
16 #include "chrome/browser/renderer_host/render_widget_host_view_views.h" | 15 #include "chrome/browser/renderer_host/render_widget_host_view_views.h" |
17 #else | 16 #else |
18 #include "content/browser/renderer_host/render_widget_host_view_gtk.h" | 17 #include "content/browser/renderer_host/render_widget_host_view_gtk.h" |
19 #endif | 18 #endif |
20 #endif | 19 #endif |
| 20 #include "content/public/browser/content_browser_client.h" |
21 #include "views/widget/widget.h" | 21 #include "views/widget/widget.h" |
22 | 22 |
23 class BalloonViewHostView : public views::NativeViewHost { | 23 class BalloonViewHostView : public views::NativeViewHost { |
24 public: | 24 public: |
25 explicit BalloonViewHostView(BalloonViewHost* host) | 25 explicit BalloonViewHostView(BalloonViewHost* host) |
26 : host_(host), | 26 : host_(host), |
27 initialized_(false) { | 27 initialized_(false) { |
28 } | 28 } |
29 | 29 |
30 virtual void ViewHierarchyChanged(bool is_add, | 30 virtual void ViewHierarchyChanged(bool is_add, |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 native_host_->Attach(view_gtk->native_view()); | 90 native_host_->Attach(view_gtk->native_view()); |
91 #endif | 91 #endif |
92 #else | 92 #else |
93 NOTIMPLEMENTED(); | 93 NOTIMPLEMENTED(); |
94 #endif | 94 #endif |
95 } | 95 } |
96 | 96 |
97 RenderWidgetHostView* BalloonViewHost::render_widget_host_view() const { | 97 RenderWidgetHostView* BalloonViewHost::render_widget_host_view() const { |
98 return render_widget_host_view_; | 98 return render_widget_host_view_; |
99 } | 99 } |
OLD | NEW |