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

Side by Side Diff: chrome/test/ui_test_utils_mac.cc

Issue 2986004: [Mac]Port browser_keyevents_browsertest.cc and browser_focus_uitest.cc to Mac. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Enable BrowserFocusTest and BrowserKeyEventsTests on Mac. Created 10 years, 5 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
« no previous file with comments | « chrome/test/ui_test_utils_linux.cc ('k') | chrome/test/ui_test_utils_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/test/ui_test_utils.h"
6
7 #include "base/logging.h"
8
9 namespace ui_test_utils {
10
11 // Details on why these are unimplemented: ViewIDs are defined in
12 // chrome/browser/view_ids.h. For Cocoa (unlike Views GTK) we don't
13 // associate ViewIDs with NSViews.
14 //
15 // Here's an idea on how to implement.
16 // - associate the correct ViewID with an NSView on construction (the most work)
17 // - create a mapping table, such as chrome/browser/gtk/view_id_util.h
18 // - IsViewFocused() then becomes
19 // [browser->window()->GetNativeHandle() firstResponder]
20 // - ClickOnView() becomes a normal NSMouseDown event forge at the right coords
21
22 bool IsViewFocused(const Browser* browser, ViewID vid) {
23 NOTIMPLEMENTED();
24 return false;
25 }
26
27 void ClickOnView(const Browser* browser, ViewID vid) {
28 NOTIMPLEMENTED();
29 }
30
31 } // namespace ui_test_utils
OLDNEW
« no previous file with comments | « chrome/test/ui_test_utils_linux.cc ('k') | chrome/test/ui_test_utils_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698