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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_gtk.cc

Issue 10905122: Initial NPAPI plugin support in Win Aura. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 years, 3 months 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) 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/renderer_host/render_widget_host_view_gtk.h" 5 #include "content/browser/renderer_host/render_widget_host_view_gtk.h"
6 6
7 // If this gets included after the gtk headers, then a bunch of compiler 7 // If this gets included after the gtk headers, then a bunch of compiler
8 // errors happen because of a "#define Status int" in Xlib.h, which interacts 8 // errors happen because of a "#define Status int" in Xlib.h, which interacts
9 // badly with net::URLRequestStatus::Status. 9 // badly with net::URLRequestStatus::Status.
10 #include "content/common/view_messages.h" 10 #include "content/common/view_messages.h"
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 gfx::NativeViewId RenderWidgetHostViewGtk::GetNativeViewId() const { 751 gfx::NativeViewId RenderWidgetHostViewGtk::GetNativeViewId() const {
752 return GtkNativeViewManager::GetInstance()->GetIdForWidget(view_.get()); 752 return GtkNativeViewManager::GetInstance()->GetIdForWidget(view_.get());
753 } 753 }
754 754
755 gfx::NativeViewAccessible RenderWidgetHostViewGtk::GetNativeViewAccessible() { 755 gfx::NativeViewAccessible RenderWidgetHostViewGtk::GetNativeViewAccessible() {
756 NOTIMPLEMENTED(); 756 NOTIMPLEMENTED();
757 return NULL; 757 return NULL;
758 } 758 }
759 759
760 void RenderWidgetHostViewGtk::MovePluginWindows( 760 void RenderWidgetHostViewGtk::MovePluginWindows(
761 const gfx::Point& scroll_offset,
761 const std::vector<webkit::npapi::WebPluginGeometry>& moves) { 762 const std::vector<webkit::npapi::WebPluginGeometry>& moves) {
762 for (size_t i = 0; i < moves.size(); ++i) { 763 for (size_t i = 0; i < moves.size(); ++i) {
763 plugin_container_manager_.MovePluginContainer(moves[i]); 764 plugin_container_manager_.MovePluginContainer(moves[i]);
764 } 765 }
765 } 766 }
766 767
767 void RenderWidgetHostViewGtk::Focus() { 768 void RenderWidgetHostViewGtk::Focus() {
768 gtk_widget_grab_focus(view_.get()); 769 gtk_widget_grab_focus(view_.get());
769 } 770 }
770 771
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
1548 this)); 1549 this));
1549 } 1550 }
1550 BrowserAccessibilityGtk* root = 1551 BrowserAccessibilityGtk* root =
1551 browser_accessibility_manager_->GetRoot()->ToBrowserAccessibilityGtk(); 1552 browser_accessibility_manager_->GetRoot()->ToBrowserAccessibilityGtk();
1552 1553
1553 atk_object_set_role(root->GetAtkObject(), ATK_ROLE_HTML_CONTAINER); 1554 atk_object_set_role(root->GetAtkObject(), ATK_ROLE_HTML_CONTAINER);
1554 return root->GetAtkObject(); 1555 return root->GetAtkObject();
1555 } 1556 }
1556 1557
1557 } // namespace content 1558 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698