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

Side by Side Diff: views/focus/accelerator_handler_gtk_unittest.cc

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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
« no previous file with comments | « views/event.h ('k') | views/focus/focus_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <gdk/gdkkeysyms.h> 5 #include <gdk/gdkkeysyms.h>
6 6
7 #include "gfx/rect.h"
8 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "ui/gfx/rect.h"
9 #include "views/focus/accelerator_handler.h" 9 #include "views/focus/accelerator_handler.h"
10 #include "views/view.h" 10 #include "views/view.h"
11 #include "views/window/window_gtk.h" 11 #include "views/window/window_gtk.h"
12 #include "views/window/window_delegate.h" 12 #include "views/window/window_delegate.h"
13 13
14 namespace views { 14 namespace views {
15 15
16 class AcceleratorHandlerGtkTest 16 class AcceleratorHandlerGtkTest
17 : public testing::Test, 17 : public testing::Test,
18 public WindowDelegate, 18 public WindowDelegate,
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 184
185 // Release Alt - now this should trigger the menu shortcut. 185 // Release Alt - now this should trigger the menu shortcut.
186 evt = CreateKeyEvent(GDK_KEY_RELEASE, GDK_Alt_L, 0); 186 evt = CreateKeyEvent(GDK_KEY_RELEASE, GDK_Alt_L, 0);
187 evt.hardware_keycode = 0x40; 187 evt.hardware_keycode = 0x40;
188 EXPECT_TRUE(handler.Dispatch(reinterpret_cast<GdkEvent*>(&evt))); 188 EXPECT_TRUE(handler.Dispatch(reinterpret_cast<GdkEvent*>(&evt)));
189 189
190 ASSERT_TRUE(menu_pressed_); 190 ASSERT_TRUE(menu_pressed_);
191 } 191 }
192 192
193 } // namespace views 193 } // namespace views
OLDNEW
« no previous file with comments | « views/event.h ('k') | views/focus/focus_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698