summaryrefslogtreecommitdiffstats
path: root/chrome/browser/printing
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-18 16:35:08 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-18 16:35:08 +0000
commit610cbb8cd46f9fdfa36d8935d5048d92445ae102 (patch)
treee4073d1addceb33cac8ab8e0824fbde9279d3d7a /chrome/browser/printing
parentd8865c2179a327f85e7be4e6d8925f559269043a (diff)
downloadchromium_src-610cbb8cd46f9fdfa36d8935d5048d92445ae102.zip
chromium_src-610cbb8cd46f9fdfa36d8935d5048d92445ae102.tar.gz
chromium_src-610cbb8cd46f9fdfa36d8935d5048d92445ae102.tar.bz2
Move navigation_types.h from content/common to content/public/browser, and put it in the content namespace. There was no reason for it to be in common since it's only used by browser. I also updated the enum names to match the rest of the enums in the Content API.
BUG=98716 TBR=joi Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106029 Review URL: http://codereview.chromium.org/8339006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106070 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/printing')
-rw-r--r--chrome/browser/printing/print_preview_tab_controller.cc8
-rw-r--r--chrome/browser/printing/print_preview_tab_controller.h2
-rw-r--r--chrome/browser/printing/print_preview_tab_controller_unittest.cc2
3 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/printing/print_preview_tab_controller.cc b/chrome/browser/printing/print_preview_tab_controller.cc
index 42976f7..330eca5 100644
--- a/chrome/browser/printing/print_preview_tab_controller.cc
+++ b/chrome/browser/printing/print_preview_tab_controller.cc
@@ -197,11 +197,11 @@ void PrintPreviewTabController::OnNavEntryCommitted(
bool source_tab_is_preview_tab = (tab == preview_tab);
if (details) {
content::PageTransition transition_type = details->entry->transition_type();
- NavigationType::Type nav_type = details->type;
+ content::NavigationType nav_type = details->type;
// Don't update/erase the map entry if the page has not changed.
if (transition_type == content::PAGE_TRANSITION_RELOAD ||
- nav_type == NavigationType::SAME_PAGE) {
+ nav_type == content::NAVIGATION_TYPE_SAME_PAGE) {
if (source_tab_is_preview_tab)
SetInitiatorTabURLAndTitle(preview_tab);
return;
@@ -210,7 +210,7 @@ void PrintPreviewTabController::OnNavEntryCommitted(
// New |preview_tab| is created. Don't update/erase map entry.
if (waiting_for_new_preview_page_ &&
transition_type == content::PAGE_TRANSITION_LINK &&
- nav_type == NavigationType::NEW_PAGE &&
+ nav_type == content::NAVIGATION_TYPE_NEW_PAGE &&
source_tab_is_preview_tab) {
waiting_for_new_preview_page_ = false;
SetInitiatorTabURLAndTitle(preview_tab);
@@ -220,7 +220,7 @@ void PrintPreviewTabController::OnNavEntryCommitted(
// User navigated to a preview tab using forward/back button.
if (source_tab_is_preview_tab &&
transition_type == content::PAGE_TRANSITION_FORWARD_BACK &&
- nav_type == NavigationType::EXISTING_PAGE) {
+ nav_type == content::NAVIGATION_TYPE_EXISTING_PAGE) {
return;
}
}
diff --git a/chrome/browser/printing/print_preview_tab_controller.h b/chrome/browser/printing/print_preview_tab_controller.h
index b954bfe..afd8b93 100644
--- a/chrome/browser/printing/print_preview_tab_controller.h
+++ b/chrome/browser/printing/print_preview_tab_controller.h
@@ -111,7 +111,7 @@ class PrintPreviewTabController
NotificationRegistrar registrar_;
// True if the controller is waiting for a new preview tab via
- // NavigationType::NEW_PAGE.
+ // content::NAVIGATION_TYPE_NEW_PAGE.
bool waiting_for_new_preview_page_;
DISALLOW_COPY_AND_ASSIGN(PrintPreviewTabController);
diff --git a/chrome/browser/printing/print_preview_tab_controller_unittest.cc b/chrome/browser/printing/print_preview_tab_controller_unittest.cc
index 2305a16..8b418d4 100644
--- a/chrome/browser/printing/print_preview_tab_controller_unittest.cc
+++ b/chrome/browser/printing/print_preview_tab_controller_unittest.cc
@@ -97,7 +97,7 @@ TEST_F(PrintPreviewTabControllerUnitTest, TitleAfterReload) {
entry.reset(new NavigationEntry());
entry->set_transition_type(content::PAGE_TRANSITION_RELOAD);
content::LoadCommittedDetails details;
- details.type = NavigationType::SAME_PAGE;
+ details.type = content::NAVIGATION_TYPE_SAME_PAGE;
details.entry = entry.get();
NotificationService::current()->Notify(
content::NOTIFICATION_NAV_ENTRY_COMMITTED,