summaryrefslogtreecommitdiffstats
path: root/chrome/views/focus_manager.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-16 23:51:38 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-16 23:51:38 +0000
commitc2dacc9ec41232903ba700c6aef5ef98bfcb8af8 (patch)
tree4aa4d7100862c64bdd92d70e6323001beb19edb7 /chrome/views/focus_manager.cc
parentd66e710ec668e34271def44d7f0416260657171c (diff)
downloadchromium_src-c2dacc9ec41232903ba700c6aef5ef98bfcb8af8.zip
chromium_src-c2dacc9ec41232903ba700c6aef5ef98bfcb8af8.tar.gz
chromium_src-c2dacc9ec41232903ba700c6aef5ef98bfcb8af8.tar.bz2
Rename ChromeViews namespace to views
http://crbug.com/2188 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3495 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/focus_manager.cc')
-rw-r--r--chrome/views/focus_manager.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/chrome/views/focus_manager.cc b/chrome/views/focus_manager.cc
index 397a4a8..084fab5 100644
--- a/chrome/views/focus_manager.cc
+++ b/chrome/views/focus_manager.cc
@@ -30,7 +30,7 @@ static const wchar_t* const kFocusManagerKey = L"__VIEW_CONTAINER__";
// - prevent tab key events from being sent to views.
static const wchar_t* const kViewKey = L"__CHROME_VIEW__";
-namespace ChromeViews {
+namespace views {
static bool IsCompatibleWithMouseWheelRedirection(HWND window) {
std::wstring class_name = win_util::GetClassName(window);
@@ -367,8 +367,8 @@ bool FocusManager::OnKeyDown(HWND window, UINT message, WPARAM wparam,
int repeat_count = LOWORD(lparam);
int flags = HIWORD(lparam);
if (focused_view_ &&
- !focused_view_->ShouldLookupAccelerators(ChromeViews::KeyEvent(
- ChromeViews::Event::ET_KEY_PRESSED, virtual_key_code,
+ !focused_view_->ShouldLookupAccelerators(KeyEvent(
+ Event::ET_KEY_PRESSED, virtual_key_code,
repeat_count, flags))) {
// This should not be processed as an accelerator.
return true;
@@ -736,8 +736,7 @@ void FocusManager::Observe(NotificationType type,
const NotificationSource& source,
const NotificationDetails& details) {
DCHECK(type == NOTIFY_VIEW_REMOVED);
- if (focused_view_ &&
- Source<ChromeViews::View>(focused_view_) == source)
+ if (focused_view_ && Source<View>(focused_view_) == source)
focused_view_ = NULL;
}
@@ -777,5 +776,5 @@ void FocusManager::RemoveFocusChangeListener(FocusChangeListener* listener) {
focus_change_listeners_.erase(place);
}
-}
+} // namespace views