| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/tab_contents/tab_contents_view_win.h" | 5 #include "content/browser/tab_contents/tab_contents_view_win.h" |
| 6 | 6 |
| 7 #include "content/browser/renderer_host/render_view_host.h" | 7 #include "content/browser/renderer_host/render_view_host.h" |
| 8 #include "content/browser/renderer_host/render_view_host_factory.h" | 8 #include "content/browser/renderer_host/render_view_host_factory.h" |
| 9 #include "content/browser/renderer_host/render_widget_host_view_win.h" | 9 #include "content/browser/renderer_host/render_widget_host_view_win.h" |
| 10 #include "content/browser/tab_contents/interstitial_page_impl.h" | 10 #include "content/browser/tab_contents/interstitial_page_impl.h" |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 initial_pos); | 239 initial_pos); |
| 240 } | 240 } |
| 241 | 241 |
| 242 void TabContentsViewWin::ShowCreatedFullscreenWidget(int route_id) { | 242 void TabContentsViewWin::ShowCreatedFullscreenWidget(int route_id) { |
| 243 tab_contents_view_helper_.ShowCreatedWidget(tab_contents_, | 243 tab_contents_view_helper_.ShowCreatedWidget(tab_contents_, |
| 244 route_id, | 244 route_id, |
| 245 true, | 245 true, |
| 246 gfx::Rect()); | 246 gfx::Rect()); |
| 247 } | 247 } |
| 248 | 248 |
| 249 void TabContentsViewWin::ShowContextMenu(const ContextMenuParams& params) { | 249 void TabContentsViewWin::ShowContextMenu( |
| 250 const content::ContextMenuParams& params) { |
| 250 NOTIMPLEMENTED(); | 251 NOTIMPLEMENTED(); |
| 251 } | 252 } |
| 252 | 253 |
| 253 void TabContentsViewWin::ShowPopupMenu(const gfx::Rect& bounds, | 254 void TabContentsViewWin::ShowPopupMenu(const gfx::Rect& bounds, |
| 254 int item_height, | 255 int item_height, |
| 255 double item_font_size, | 256 double item_font_size, |
| 256 int selected_item, | 257 int selected_item, |
| 257 const std::vector<WebMenuItem>& items, | 258 const std::vector<WebMenuItem>& items, |
| 258 bool right_aligned) { | 259 bool right_aligned) { |
| 259 NOTIMPLEMENTED(); | 260 NOTIMPLEMENTED(); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 288 | 289 |
| 289 gfx::Size size(window_pos->cx, window_pos->cy); | 290 gfx::Size size(window_pos->cx, window_pos->cy); |
| 290 if (tab_contents_->GetInterstitialPage()) | 291 if (tab_contents_->GetInterstitialPage()) |
| 291 tab_contents_->GetInterstitialPage()->SetSize(size); | 292 tab_contents_->GetInterstitialPage()->SetSize(size); |
| 292 RenderWidgetHostView* rwhv = tab_contents_->GetRenderWidgetHostView(); | 293 RenderWidgetHostView* rwhv = tab_contents_->GetRenderWidgetHostView(); |
| 293 if (rwhv) | 294 if (rwhv) |
| 294 rwhv->SetSize(size); | 295 rwhv->SetSize(size); |
| 295 | 296 |
| 296 return 0; | 297 return 0; |
| 297 } | 298 } |
| OLD | NEW |