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 "content/browser/renderer_host/render_widget_host_view_win.h" | 11 #include "content/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) || defined(USE_AURA) |
15 #include "chrome/browser/renderer_host/render_widget_host_view_views.h" | 15 #include "chrome/browser/renderer_host/render_widget_host_view_views.h" |
Ben Goodger (Google)
2011/09/16 01:11:18
Again, the flow here should read:
#if defined(USE
| |
16 #else | 16 #else |
17 #include "content/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), |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
88 native_host_->Attach(view_gtk->native_view()); | 88 native_host_->Attach(view_gtk->native_view()); |
89 #endif | 89 #endif |
90 #else | 90 #else |
91 NOTIMPLEMENTED(); | 91 NOTIMPLEMENTED(); |
92 #endif | 92 #endif |
93 } | 93 } |
94 | 94 |
95 RenderWidgetHostView* BalloonViewHost::render_widget_host_view() const { | 95 RenderWidgetHostView* BalloonViewHost::render_widget_host_view() const { |
96 return render_widget_host_view_; | 96 return render_widget_host_view_; |
97 } | 97 } |
OLD | NEW |