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

Unified Diff: chrome/browser/ui/views/dropdown_bar_host_win.cc

Issue 138943006: Remove a bunch of dead files after the win aura switch. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/dropdown_bar_host.h ('k') | chrome/browser/ui/views/find_bar_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/dropdown_bar_host_win.cc
===================================================================
--- chrome/browser/ui/views/dropdown_bar_host_win.cc (revision 244941)
+++ chrome/browser/ui/views/dropdown_bar_host_win.cc (working copy)
@@ -1,44 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/views/dropdown_bar_host.h"
-
-#include "chrome/browser/ui/find_bar/find_bar_controller.h"
-#include "chrome/browser/ui/views/frame/browser_view.h"
-#include "content/public/browser/render_view_host.h"
-#include "content/public/browser/web_contents.h"
-#include "content/public/browser/web_contents_view.h"
-#include "ui/events/event.h"
-#include "ui/events/keycodes/keyboard_code_conversion_win.h"
-#include "ui/views/controls/scrollbar/native_scroll_bar.h"
-
-using content::NativeWebKeyboardEvent;
-using content::WebContents;
-
-NativeWebKeyboardEvent DropdownBarHost::GetKeyboardEvent(
- const WebContents* contents,
- const ui::KeyEvent& key_event) {
- HWND hwnd = contents->GetView()->GetContentNativeView();
- WORD key = WindowsKeyCodeForKeyboardCode(key_event.key_code());
-
- MSG msg = { hwnd, key_event.native_event().message, key, 0 };
- return NativeWebKeyboardEvent(msg);
-}
-
-void DropdownBarHost::SetWidgetPositionNative(const gfx::Rect& new_pos,
- bool no_redraw) {
- DWORD swp_flags = SWP_NOOWNERZORDER;
- if (no_redraw)
- swp_flags |= SWP_NOREDRAW;
- if (!host_->IsVisible())
- swp_flags |= SWP_SHOWWINDOW;
-
- ::SetWindowPos(host_->GetNativeView(), HWND_TOP, new_pos.x(), new_pos.y(),
- new_pos.width(), new_pos.height(), swp_flags);
-}
-
-void DropdownBarHost::SetHostViewNative(views::View* host_view) {
- // TODO(pkotwicz): Implement controlling the z-order of hwnds associated to a
- // host view via the z-order of the host views in |browser_view_|'s view tree.
-}
« no previous file with comments | « chrome/browser/ui/views/dropdown_bar_host.h ('k') | chrome/browser/ui/views/find_bar_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698