summaryrefslogtreecommitdiffstats
path: root/content/shell/shell_win.cc
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-06 20:58:42 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-06 20:58:42 +0000
commit72e446c065067905dc3ced8c3d2f4316f5a0f457 (patch)
tree7062f5d85a085881e6793444348e8597ebf7c9b5 /content/shell/shell_win.cc
parent65cc91d47989fb23ebe827e4dec5b555fdf6c6d1 (diff)
downloadchromium_src-72e446c065067905dc3ced8c3d2f4316f5a0f457.zip
chromium_src-72e446c065067905dc3ced8c3d2f4316f5a0f457.tar.gz
chromium_src-72e446c065067905dc3ced8c3d2f4316f5a0f457.tar.bz2
Revert 104359 - Initial changes for Mac content shell.
BUG=90445 TEST=none Review URL: http://codereview.chromium.org/8171012 TBR=avi@chromium.org Review URL: http://codereview.chromium.org/8174013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104363 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/shell_win.cc')
-rw-r--r--content/shell/shell_win.cc26
1 files changed, 14 insertions, 12 deletions
diff --git a/content/shell/shell_win.cc b/content/shell/shell_win.cc
index 7a0a1b9..a499189 100644
--- a/content/shell/shell_win.cc
+++ b/content/shell/shell_win.cc
@@ -22,13 +22,13 @@
namespace {
-const wchar_t kWindowTitle[] = L"Content Shell";
-const wchar_t kWindowClass[] = L"CONTENT_SHELL";
+static const wchar_t kWindowTitle[] = L"Content Shell";
+static const wchar_t kWindowClass[] = L"CONTENT_SHELL";
-const int kButtonWidth = 72;
-const int kURLBarHeight = 24;
+static const int kButtonWidth = 72;
+static const int kURLBarHeight = 24;
-const int kMaxURLLength = 1024;
+static const int kMaxURLLength = 1024;
static base::StringPiece GetRawDataResource(HMODULE module, int resource_id) {
void* data_ptr;
@@ -94,7 +94,7 @@ void Shell::PlatformSetAddressBarURL(const GURL& url) {
reinterpret_cast<LPARAM>(url_string.c_str()));
}
-void Shell::PlatformCreateWindow(int width, int height) {
+void Shell::PlatformCreateWindow() {
window_ = CreateWindow(kWindowClass, kWindowTitle,
WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN,
CW_USEDEFAULT, 0, CW_USEDEFAULT, 0,
@@ -139,8 +139,6 @@ void Shell::PlatformCreateWindow(int width, int height) {
ui::SetWindowUserData(url_edit_view_, this);
ShowWindow(window_, SW_SHOW);
-
- PlatformSizeTo(width, height);
}
void Shell::PlatformSizeTo(int width, int height) {
@@ -218,11 +216,15 @@ LRESULT CALLBACK Shell::WndProc(HWND hwnd, UINT message, WPARAM wParam,
shell->GoBackOrForward(1);
break;
case IDC_NAV_RELOAD:
- shell->Reload();
- break;
- case IDC_NAV_STOP:
- shell->Stop();
+ case IDC_NAV_STOP: {
+ if (id == IDC_NAV_RELOAD) {
+ shell->Reload();
+ } else {
+ shell->Stop();
+ }
break;
+ }
+ break;
}
break;
}