Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(295)

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_views.cc

Issue 5998002: Revert "Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "app/keyboard_code_conversion_gtk.h" 10 #include "app/keyboard_code_conversion_gtk.h"
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 int height = std::min(size.height(), kMaxWindowHeight); 186 int height = std::min(size.height(), kMaxWindowHeight);
187 if (requested_size_.width() != width || 187 if (requested_size_.width() != width ||
188 requested_size_.height() != height) { 188 requested_size_.height() != height) {
189 requested_size_ = gfx::Size(width, height); 189 requested_size_ = gfx::Size(width, height);
190 SetBounds(gfx::Rect(x(), y(), width, height)); 190 SetBounds(gfx::Rect(x(), y(), width, height));
191 host_->WasResized(); 191 host_->WasResized();
192 } 192 }
193 } 193 }
194 194
195 void RenderWidgetHostViewViews::MovePluginWindows( 195 void RenderWidgetHostViewViews::MovePluginWindows(
196 const std::vector<webkit::npapi::WebPluginGeometry>& moves) { 196 const std::vector<webkit_glue::WebPluginGeometry>& moves) {
197 // TODO(anicolao): NIY 197 // TODO(anicolao): NIY
198 // NOTIMPLEMENTED(); 198 // NOTIMPLEMENTED();
199 } 199 }
200 200
201 void RenderWidgetHostViewViews::Focus() { 201 void RenderWidgetHostViewViews::Focus() {
202 RequestFocus(); 202 RequestFocus();
203 } 203 }
204 204
205 bool RenderWidgetHostViewViews::HasFocus() { 205 bool RenderWidgetHostViewViews::HasFocus() {
206 return View::HasFocus(); 206 return View::HasFocus();
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 } 729 }
730 730
731 // static 731 // static
732 RenderWidgetHostView* 732 RenderWidgetHostView*
733 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( 733 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView(
734 gfx::NativeView widget) { 734 gfx::NativeView widget) {
735 gpointer user_data = g_object_get_data(G_OBJECT(widget), 735 gpointer user_data = g_object_get_data(G_OBJECT(widget),
736 kRenderWidgetHostViewKey); 736 kRenderWidgetHostViewKey);
737 return reinterpret_cast<RenderWidgetHostView*>(user_data); 737 return reinterpret_cast<RenderWidgetHostView*>(user_data);
738 } 738 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698