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

Side by Side Diff: chrome/browser/external_tab_container_win.cc

Issue 8413051: Move PageZoom enum into content/public/common and into the content namespace. Also move content_c... (Closed) Base URL: svn://chrome-svn/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/external_tab_container_win.h" 5 #include "chrome/browser/external_tab_container_win.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
(...skipping 26 matching lines...) Expand all
37 #include "chrome/common/chrome_notification_types.h" 37 #include "chrome/common/chrome_notification_types.h"
38 #include "chrome/common/render_messages.h" 38 #include "chrome/common/render_messages.h"
39 #include "chrome/common/url_constants.h" 39 #include "chrome/common/url_constants.h"
40 #include "content/browser/load_notification_details.h" 40 #include "content/browser/load_notification_details.h"
41 #include "content/browser/renderer_host/render_process_host.h" 41 #include "content/browser/renderer_host/render_process_host.h"
42 #include "content/browser/renderer_host/render_view_host.h" 42 #include "content/browser/renderer_host/render_view_host.h"
43 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" 43 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h"
44 #include "content/browser/tab_contents/navigation_details.h" 44 #include "content/browser/tab_contents/navigation_details.h"
45 #include "content/browser/tab_contents/provisional_load_details.h" 45 #include "content/browser/tab_contents/provisional_load_details.h"
46 #include "content/public/browser/notification_service.h" 46 #include "content/public/browser/notification_service.h"
47 #include "content/common/page_zoom.h"
48 #include "content/common/view_messages.h" 47 #include "content/common/view_messages.h"
49 #include "content/public/browser/native_web_keyboard_event.h" 48 #include "content/public/browser/native_web_keyboard_event.h"
50 #include "content/public/common/bindings_policy.h" 49 #include "content/public/common/bindings_policy.h"
51 #include "content/public/common/page_transition_types.h" 50 #include "content/public/common/page_transition_types.h"
51 #include "content/public/common/page_zoom.h"
52 #include "grit/generated_resources.h" 52 #include "grit/generated_resources.h"
53 #include "grit/locale_settings.h" 53 #include "grit/locale_settings.h"
54 #include "ui/base/l10n/l10n_util.h" 54 #include "ui/base/l10n/l10n_util.h"
55 #include "ui/base/resource/resource_bundle.h" 55 #include "ui/base/resource/resource_bundle.h"
56 #include "ui/base/view_prop.h" 56 #include "ui/base/view_prop.h"
57 #include "ui/base/models/menu_model.h" 57 #include "ui/base/models/menu_model.h"
58 #include "views/layout/grid_layout.h" 58 #include "views/layout/grid_layout.h"
59 59
60 using ui::ViewProp; 60 using ui::ViewProp;
61 61
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 1031
1032 if (!tab_contents_.get() || !tab_contents_->render_view_host()) { 1032 if (!tab_contents_.get() || !tab_contents_->render_view_host()) {
1033 NOTREACHED(); 1033 NOTREACHED();
1034 return false; 1034 return false;
1035 } 1035 }
1036 1036
1037 RenderViewHost* host = tab_contents_->render_view_host(); 1037 RenderViewHost* host = tab_contents_->render_view_host();
1038 int command_id = iter->second; 1038 int command_id = iter->second;
1039 switch (command_id) { 1039 switch (command_id) {
1040 case IDC_ZOOM_PLUS: 1040 case IDC_ZOOM_PLUS:
1041 host->Zoom(PageZoom::ZOOM_IN); 1041 host->Zoom(content::PAGE_ZOOM_IN);
1042 break; 1042 break;
1043 case IDC_ZOOM_NORMAL: 1043 case IDC_ZOOM_NORMAL:
1044 host->Zoom(PageZoom::RESET); 1044 host->Zoom(content::PAGE_ZOOM_RESET);
1045 break; 1045 break;
1046 case IDC_ZOOM_MINUS: 1046 case IDC_ZOOM_MINUS:
1047 host->Zoom(PageZoom::ZOOM_OUT); 1047 host->Zoom(content::PAGE_ZOOM_OUT);
1048 break; 1048 break;
1049 case IDC_DEV_TOOLS: 1049 case IDC_DEV_TOOLS:
1050 DevToolsWindow::ToggleDevToolsWindow( 1050 DevToolsWindow::ToggleDevToolsWindow(
1051 tab_contents_->render_view_host(), DEVTOOLS_TOGGLE_ACTION_NONE); 1051 tab_contents_->render_view_host(), DEVTOOLS_TOGGLE_ACTION_NONE);
1052 break; 1052 break;
1053 case IDC_DEV_TOOLS_CONSOLE: 1053 case IDC_DEV_TOOLS_CONSOLE:
1054 DevToolsWindow::ToggleDevToolsWindow( 1054 DevToolsWindow::ToggleDevToolsWindow(
1055 tab_contents_->render_view_host(), 1055 tab_contents_->render_view_host(),
1056 DEVTOOLS_TOGGLE_ACTION_SHOW_CONSOLE); 1056 DEVTOOLS_TOGGLE_ACTION_SHOW_CONSOLE);
1057 break; 1057 break;
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
1214 if (params.disposition == CURRENT_TAB) { 1214 if (params.disposition == CURRENT_TAB) {
1215 DCHECK(route_all_top_level_navigations_); 1215 DCHECK(route_all_top_level_navigations_);
1216 forward_params.disposition = NEW_FOREGROUND_TAB; 1216 forward_params.disposition = NEW_FOREGROUND_TAB;
1217 } 1217 }
1218 TabContents* new_contents = 1218 TabContents* new_contents =
1219 ExternalTabContainer::OpenURLFromTab(source, forward_params); 1219 ExternalTabContainer::OpenURLFromTab(source, forward_params);
1220 // support only one navigation for a dummy tab before it is killed. 1220 // support only one navigation for a dummy tab before it is killed.
1221 ::DestroyWindow(GetNativeView()); 1221 ::DestroyWindow(GetNativeView());
1222 return new_contents; 1222 return new_contents;
1223 } 1223 }
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider_win.cc ('k') | chrome/browser/tab_contents/web_contents_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698