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

Unified Diff: chrome/browser/browser_focus_uitest.cc

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser_browsertest.cc ('k') | chrome/browser/browser_keyevents_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_focus_uitest.cc
===================================================================
--- chrome/browser/browser_focus_uitest.cc (revision 91968)
+++ chrome/browser/browser_focus_uitest.cc (working copy)
@@ -15,6 +15,7 @@
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/view_ids.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/url_constants.h"
#include "chrome/test/in_process_browser_test.h"
@@ -181,7 +182,7 @@
void OnFocusedNodeChanged(bool is_editable_node) {
NotificationService::current()->Notify(
- NotificationType::FOCUS_CHANGED_IN_PAGE,
+ content::NOTIFICATION_FOCUS_CHANGED_IN_PAGE,
Source<TabContents>(tab()),
Details<const bool>(&is_editable_node));
}
@@ -504,7 +505,7 @@
ASSERT_TRUE(ui_test_utils::SendKeyPressAndWaitWithDetails(
browser(), ui::VKEY_TAB, false, false, false, false,
- NotificationType::FOCUS_CHANGED_IN_PAGE,
+ content::NOTIFICATION_FOCUS_CHANGED_IN_PAGE,
NotificationSource(Source<TabContents>(
browser()->GetSelectedTabContents())),
details));
@@ -512,7 +513,7 @@
// On the last tab key press, the focus returns to the browser.
ASSERT_TRUE(ui_test_utils::SendKeyPressAndWait(
browser(), ui::VKEY_TAB, false, false, false, false,
- NotificationType::FOCUS_RETURNED_TO_BROWSER,
+ chrome::NOTIFICATION_FOCUS_RETURNED_TO_BROWSER,
NotificationSource(Source<Browser>(browser()))));
}
}
@@ -547,7 +548,7 @@
ASSERT_TRUE(ui_test_utils::SendKeyPressAndWaitWithDetails(
browser(), ui::VKEY_TAB, false, true, false, false,
- NotificationType::FOCUS_CHANGED_IN_PAGE,
+ content::NOTIFICATION_FOCUS_CHANGED_IN_PAGE,
NotificationSource(Source<TabContents>(
browser()->GetSelectedTabContents())),
details));
@@ -555,7 +556,7 @@
// On the last tab key press, the focus returns to the browser.
ASSERT_TRUE(ui_test_utils::SendKeyPressAndWait(
browser(), ui::VKEY_TAB, false, true, false, false,
- NotificationType::FOCUS_RETURNED_TO_BROWSER,
+ chrome::NOTIFICATION_FOCUS_RETURNED_TO_BROWSER,
NotificationSource(Source<Browser>(browser()))));
}
@@ -627,16 +628,16 @@
&actual));
ASSERT_STREQ(kExpElementIDs[j], actual.c_str());
- NotificationType::Type notification_type;
+ int notification_type;
NotificationSource notification_source =
NotificationService::AllSources();
if (j < arraysize(kExpElementIDs) - 1) {
- notification_type = NotificationType::FOCUS_CHANGED_IN_PAGE;
+ notification_type = content::NOTIFICATION_FOCUS_CHANGED_IN_PAGE;
notification_source = Source<TabContents>(
interstitial_page->tab());
} else {
// On the last tab key press, the focus returns to the browser.
- notification_type = NotificationType::FOCUS_RETURNED_TO_BROWSER;
+ notification_type = chrome::NOTIFICATION_FOCUS_RETURNED_TO_BROWSER;
notification_source = Source<Browser>(browser());
}
@@ -662,16 +663,16 @@
// Now let's press shift-tab to move the focus in reverse.
for (size_t j = 0; j < 7; ++j) {
- NotificationType::Type notification_type;
+ int notification_type;
NotificationSource notification_source =
NotificationService::AllSources();
if (j < arraysize(kExpElementIDs) - 1) {
- notification_type = NotificationType::FOCUS_CHANGED_IN_PAGE;
+ notification_type = content::NOTIFICATION_FOCUS_CHANGED_IN_PAGE;
notification_source = Source<TabContents>(
interstitial_page->tab());
} else {
// On the last tab key press, the focus returns to the browser.
- notification_type = NotificationType::FOCUS_RETURNED_TO_BROWSER;
+ notification_type = chrome::NOTIFICATION_FOCUS_RETURNED_TO_BROWSER;
notification_source = Source<Browser>(browser());
}
« no previous file with comments | « chrome/browser/browser_browsertest.cc ('k') | chrome/browser/browser_keyevents_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698