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

Side by Side Diff: chrome/browser/ui/views/dropdown_bar_host_aura.cc

Issue 8547015: Revert 110949 - views: Move widget/ directory to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ui/views/dropdown_bar_host.h" 5 #include "chrome/browser/ui/views/dropdown_bar_host.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/aura/window.h" 8 #include "ui/aura/window.h"
9 #include "ui/views/widget/widget.h" 9 #include "views/widget/widget.h"
10 10
11 NativeWebKeyboardEvent DropdownBarHost::GetKeyboardEvent( 11 NativeWebKeyboardEvent DropdownBarHost::GetKeyboardEvent(
12 const TabContents* contents, 12 const TabContents* contents,
13 const views::KeyEvent& key_event) { 13 const views::KeyEvent& key_event) {
14 return NativeWebKeyboardEvent(key_event.native_event()); 14 return NativeWebKeyboardEvent(key_event.native_event());
15 } 15 }
16 16
17 void DropdownBarHost::SetWidgetPositionNative(const gfx::Rect& new_pos, 17 void DropdownBarHost::SetWidgetPositionNative(const gfx::Rect& new_pos,
18 bool no_redraw) { 18 bool no_redraw) {
19 if (!host_->IsVisible()) 19 if (!host_->IsVisible())
20 host_->GetNativeView()->Show(); 20 host_->GetNativeView()->Show();
21 host_->GetNativeView()->SetBounds(new_pos); 21 host_->GetNativeView()->SetBounds(new_pos);
22 } 22 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/dropdown_bar_host.cc ('k') | chrome/browser/ui/views/dropdown_bar_host_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698