OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/renderer_host/render_widget_host_view_views.h" | 5 #include "chrome/browser/renderer_host/render_widget_host_view_views.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 return host_; | 143 return host_; |
144 } | 144 } |
145 | 145 |
146 void RenderWidgetHostViewViews::InitAsPopup( | 146 void RenderWidgetHostViewViews::InitAsPopup( |
147 RenderWidgetHostView* parent_host_view, | 147 RenderWidgetHostView* parent_host_view, |
148 const gfx::Rect& pos) { | 148 const gfx::Rect& pos) { |
149 // TODO(anicolao): figure out cases where popups occur and implement | 149 // TODO(anicolao): figure out cases where popups occur and implement |
150 NOTIMPLEMENTED(); | 150 NOTIMPLEMENTED(); |
151 } | 151 } |
152 | 152 |
153 void RenderWidgetHostViewViews::InitAsFullscreen( | 153 void RenderWidgetHostViewViews::InitAsFullscreen() { |
154 RenderWidgetHostView* parent_host_view) { | |
155 NOTIMPLEMENTED(); | 154 NOTIMPLEMENTED(); |
156 } | 155 } |
157 | 156 |
158 void RenderWidgetHostViewViews::DidBecomeSelected() { | 157 void RenderWidgetHostViewViews::DidBecomeSelected() { |
159 if (!is_hidden_) | 158 if (!is_hidden_) |
160 return; | 159 return; |
161 | 160 |
162 if (tab_switch_paint_time_.is_null()) | 161 if (tab_switch_paint_time_.is_null()) |
163 tab_switch_paint_time_ = base::TimeTicks::Now(); | 162 tab_switch_paint_time_ = base::TimeTicks::Now(); |
164 is_hidden_ = false; | 163 is_hidden_ = false; |
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
776 } | 775 } |
777 | 776 |
778 // static | 777 // static |
779 RenderWidgetHostView* | 778 RenderWidgetHostView* |
780 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( | 779 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( |
781 gfx::NativeView widget) { | 780 gfx::NativeView widget) { |
782 gpointer user_data = g_object_get_data(G_OBJECT(widget), | 781 gpointer user_data = g_object_get_data(G_OBJECT(widget), |
783 kRenderWidgetHostViewKey); | 782 kRenderWidgetHostViewKey); |
784 return reinterpret_cast<RenderWidgetHostView*>(user_data); | 783 return reinterpret_cast<RenderWidgetHostView*>(user_data); |
785 } | 784 } |
OLD | NEW |