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

Side by Side Diff: chrome_frame/chrome_active_document.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
« no previous file with comments | « chrome_frame/cfproxy_support.cc ('k') | chrome_frame/chrome_frame_automation.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) 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 // Implementation of ChromeActiveDocument 5 // Implementation of ChromeActiveDocument
6 #include "chrome_frame/chrome_active_document.h" 6 #include "chrome_frame/chrome_active_document.h"
7 7
8 #include <hlink.h> 8 #include <hlink.h>
9 #include <htiface.h> 9 #include <htiface.h>
10 #include <initguid.h> 10 #include <initguid.h>
(...skipping 17 matching lines...) Expand all
28 #include "chrome/common/automation_messages.h" 28 #include "chrome/common/automation_messages.h"
29 #include "chrome/common/chrome_constants.h" 29 #include "chrome/common/chrome_constants.h"
30 #include "chrome/test/automation/browser_proxy.h" 30 #include "chrome/test/automation/browser_proxy.h"
31 #include "chrome/test/automation/tab_proxy.h" 31 #include "chrome/test/automation/tab_proxy.h"
32 #include "chrome_frame/bho.h" 32 #include "chrome_frame/bho.h"
33 #include "chrome_frame/bind_context_info.h" 33 #include "chrome_frame/bind_context_info.h"
34 #include "chrome_frame/buggy_bho_handling.h" 34 #include "chrome_frame/buggy_bho_handling.h"
35 #include "chrome_frame/crash_reporting/crash_metrics.h" 35 #include "chrome_frame/crash_reporting/crash_metrics.h"
36 #include "chrome_frame/utils.h" 36 #include "chrome_frame/utils.h"
37 #include "content/browser/tab_contents/tab_contents.h" 37 #include "content/browser/tab_contents/tab_contents.h"
38 #include "content/common/page_zoom.h" 38 #include "content/public/common/page_zoom.h"
39 #include "grit/generated_resources.h" 39 #include "grit/generated_resources.h"
40 40
41 DEFINE_GUID(CGID_DocHostCmdPriv, 0x000214D4L, 0, 0, 0xC0, 0, 0, 0, 0, 0, 0, 41 DEFINE_GUID(CGID_DocHostCmdPriv, 0x000214D4L, 0, 0, 0xC0, 0, 0, 0, 0, 0, 0,
42 0x46); 42 0x46);
43 43
44 bool g_first_launch_by_process_ = true; 44 bool g_first_launch_by_process_ = true;
45 45
46 const DWORD kIEEncodingIdArray[] = { 46 const DWORD kIEEncodingIdArray[] = {
47 #define DEFINE_ENCODING_ID_ARRAY(encoding_name, id, chrome_name) encoding_name, 47 #define DEFINE_ENCODING_ID_ARRAY(encoding_name, id, chrome_name) encoding_name,
48 INTERNAL_IE_ENCODINGMENU_IDS(DEFINE_ENCODING_ID_ARRAY) 48 INTERNAL_IE_ENCODINGMENU_IDS(DEFINE_ENCODING_ID_ARRAY)
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 void ChromeActiveDocument::OnSetZoomRange(const GUID* cmd_group_guid, 889 void ChromeActiveDocument::OnSetZoomRange(const GUID* cmd_group_guid,
890 DWORD command_id, 890 DWORD command_id,
891 DWORD cmd_exec_opt, 891 DWORD cmd_exec_opt,
892 VARIANT* in_args, 892 VARIANT* in_args,
893 VARIANT* out_args) { 893 VARIANT* out_args) {
894 const int kZoomIn = 125; 894 const int kZoomIn = 125;
895 const int kZoomOut = 75; 895 const int kZoomOut = 75;
896 896
897 if (in_args && V_VT(in_args) == VT_I4 && IsValid()) { 897 if (in_args && V_VT(in_args) == VT_I4 && IsValid()) {
898 if (in_args->lVal == kZoomIn) { 898 if (in_args->lVal == kZoomIn) {
899 automation_client_->SetZoomLevel(PageZoom::ZOOM_IN); 899 automation_client_->SetZoomLevel(content::PAGE_ZOOM_IN);
900 } else if (in_args->lVal == kZoomOut) { 900 } else if (in_args->lVal == kZoomOut) {
901 automation_client_->SetZoomLevel(PageZoom::ZOOM_OUT); 901 automation_client_->SetZoomLevel(content::PAGE_ZOOM_OUT);
902 } else { 902 } else {
903 DLOG(WARNING) << "Unsupported zoom level:" << in_args->lVal; 903 DLOG(WARNING) << "Unsupported zoom level:" << in_args->lVal;
904 } 904 }
905 } 905 }
906 } 906 }
907 907
908 void ChromeActiveDocument::OnUnload(const GUID* cmd_group_guid, 908 void ChromeActiveDocument::OnUnload(const GUID* cmd_group_guid,
909 DWORD command_id, 909 DWORD command_id,
910 DWORD cmd_exec_opt, 910 DWORD cmd_exec_opt,
911 VARIANT* in_args, 911 VARIANT* in_args,
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
1404 return true; 1404 return true;
1405 1405
1406 if (new_navigation_info.url != navigation_info_->url) 1406 if (new_navigation_info.url != navigation_info_->url)
1407 return true; 1407 return true;
1408 1408
1409 if (new_navigation_info.referrer != navigation_info_->referrer) 1409 if (new_navigation_info.referrer != navigation_info_->referrer)
1410 return true; 1410 return true;
1411 1411
1412 return false; 1412 return false;
1413 } 1413 }
OLDNEW
« no previous file with comments | « chrome_frame/cfproxy_support.cc ('k') | chrome_frame/chrome_frame_automation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698