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

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

Issue 731373002: Enable MSVC warning for unused locals. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync Created 6 years, 1 month 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
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_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 return reinterpret_cast<gfx::NativeViewId>(host->GetAcceleratedWidget()); 663 return reinterpret_cast<gfx::NativeViewId>(host->GetAcceleratedWidget());
664 #endif 664 #endif
665 return static_cast<gfx::NativeViewId>(NULL); 665 return static_cast<gfx::NativeViewId>(NULL);
666 } 666 }
667 667
668 gfx::NativeViewAccessible RenderWidgetHostViewAura::GetNativeViewAccessible() { 668 gfx::NativeViewAccessible RenderWidgetHostViewAura::GetNativeViewAccessible() {
669 #if defined(OS_WIN) 669 #if defined(OS_WIN)
670 aura::WindowTreeHost* host = window_->GetHost(); 670 aura::WindowTreeHost* host = window_->GetHost();
671 if (!host) 671 if (!host)
672 return static_cast<gfx::NativeViewAccessible>(NULL); 672 return static_cast<gfx::NativeViewAccessible>(NULL);
673 HWND hwnd = host->GetAcceleratedWidget(); 673 // ?? Should this use host instead of host_?
no sievers 2014/11/18 19:27:27 No I'm guessing GetHost() is just to check that th
Peter Kasting 2014/11/18 20:45:31 OK. Removed comment.
674 BrowserAccessibilityManager* manager = 674 BrowserAccessibilityManager* manager =
675 host_->GetOrCreateRootBrowserAccessibilityManager(); 675 host_->GetOrCreateRootBrowserAccessibilityManager();
676 if (manager) 676 if (manager)
677 return manager->GetRoot()->ToBrowserAccessibilityWin(); 677 return manager->GetRoot()->ToBrowserAccessibilityWin();
678 #endif 678 #endif
679 679
680 NOTIMPLEMENTED(); 680 NOTIMPLEMENTED();
681 return static_cast<gfx::NativeViewAccessible>(NULL); 681 return static_cast<gfx::NativeViewAccessible>(NULL);
682 } 682 }
683 683
(...skipping 1894 matching lines...) Expand 10 before | Expand all | Expand 10 after
2578 2578
2579 //////////////////////////////////////////////////////////////////////////////// 2579 ////////////////////////////////////////////////////////////////////////////////
2580 // RenderWidgetHostViewBase, public: 2580 // RenderWidgetHostViewBase, public:
2581 2581
2582 // static 2582 // static
2583 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { 2583 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) {
2584 GetScreenInfoForWindow(results, NULL); 2584 GetScreenInfoForWindow(results, NULL);
2585 } 2585 }
2586 2586
2587 } // namespace content 2587 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698